Runtime memory allocation optimizations
Use ArraySegment
To any reviewers:
- Is zeroing the messagePtr arrays in NextClient.cs and NextServer.cs necessary?
- Is the commented out code inside of ProcessMessage() in NextCommon.cs a good way of handling oversize packets or should it stay the way it is?
Thanks!
By reusing the same buffer for receiving, I created a bug when messages are queued up before the connection fully begins. So all of the queued up messages keep overwriting each other, because they are not processed immediately, as they are normally.
I am working on a fix now where the queued up data is copied to new arrays.
The issue should be fixed now
@Chykary Hey, just want to make sure you see this. Thanks!
Thank you and sorry for the delay! Github mails always end up in spam folder for me, got to fix that..