-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make readInt() 3-4 times faster #284
Conversation
Ah, you found perhaps the lowest hanging fruit it would seem :). Very nice. |
You know, on second thought it might good to do the same thing on .NET too. The in-place reverse with What do you think? |
@kerams since multi-threading and parallelization isn't a concern, it's a trivial fix. Just remove the special case for |
Shall I bump the version to 1.13.1 at the same time? |
There's no need. |
…leMemoryStream option (#280)
@juselius A new batch of packages has been publishes that includes the improvement in MsgPack 🚀 updating |
readint ()
uses a local temporary array for endian conversion. This array gets created and garbage collected for every value, putting a lot of strain on the garbage collector. By making the array a reusable class variable, we achieve 3-4 times faster execution. The class variable is only used by Fable, and since JavaScript is single-threaded there should not be any issues related to race conditions etc.