Performance of .ReceivePacket vs. .ReceivePackets

Sep 12, 2011 at 4:54 PM

I assume communicator.ReceivePacket(out packet) has less overhead than communicator.ReceivePackets(PacketHandler). This would be primarily because without the callback, there's no function-call overhead. Right?



Sep 17, 2011 at 12:47 PM

Hi Steve,


I believe RecievePackets() should be more efficient if you're having a high load of packets.

However, I would suggest using RecievePacket() as long as not efficiency issues are found since it's simpler to use and this optimization won't help most programs.