I was trying to connect to a Bluetooth device. On a Samsung Galaxy tab E this cripples your wifi completely. On Samsung Galaxy 4 it slows it down to walking pace. I had previously been trying Bluetooth connection every 10 seconds but had made a change to make it automatically retry after Serial1_Connected(false).