More performance improvements to show_port