Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
The Minecraft Protocol
#6
Enough reason to make the program correct in the face of fragmented packets, sure. But not enough reason to worry about its impact on performance if it only rarely happens in practice. They may never get fragmented if they're small enough.

If it actually is a performance problem, you could avoid reparsing the partial packet if you kept track of the parsing state along with the partial packet.
Reply


Messages In This Thread
The Minecraft Protocol - by AngelSL - 2011-03-10, 11:57 AM
The Minecraft Protocol - by Spaz - 2011-03-10, 10:45 PM
The Minecraft Protocol - by AngelSL - 2011-03-11, 01:14 AM
The Minecraft Protocol - by Spaz - 2011-03-11, 10:34 PM
The Minecraft Protocol - by AngelSL - 2011-03-13, 01:22 PM
The Minecraft Protocol - by Spaz - 2011-03-13, 03:45 PM
The Minecraft Protocol - by AngelSL - 2011-03-14, 04:37 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)