Performance of .ReceivePacket vs. .ReceivePackets

Sep 12, 2011 at 3: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 11:47 AM

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.