-
Notifications
You must be signed in to change notification settings - Fork 176
MessagePackSerializer.Get is slow #191
Copy link
Copy link
Open
Labels
enhancementRequires or request to feature enhancementRequires or request to feature enhancementneed-more-infoNeed more information (error message, stack trace, repro code etc)Need more information (error message, stack trace, repro code etc)
Description
Activity
Metadata
Metadata
Assignees
Labels
enhancementRequires or request to feature enhancementRequires or request to feature enhancementneed-more-infoNeed more information (error message, stack trace, repro code etc)Need more information (error message, stack trace, repro code etc)
I'm measuring own serializer(
ZeroFormatter) and compare to other serializers.I found MsgPack's
MessagePackSerializer.Getis too slow.Here is my benchmark.
https://gist.github.com/neuecc/52a5e0e07e25b52eead26f93ad2b52f9
If get serializer in outer iteration loop, works fine.
But "Get is slow" is critical issue.
Serializer is normaly called from Stream with type and called Get every time.
https://github.com/neuecc/LightNode/blob/master/Source/LightNode.Formatter.MsgPack/MsgPackContentFormatter.cs#L43
It means MsgPack-CLI is x10 slower than JSON.NET...