Move packets per second code from parsePacket to parseHeader
Minor market optimization
Fix #809