Skip to content

MessagePackSerializer.Get is slow #191

Description

@neuecc

I'm measuring own serializer(ZeroFormatter) and compare to other serializers.
I found MsgPack's MessagePackSerializer.Get is too slow.

Here is my benchmark.
https://gist.github.com/neuecc/52a5e0e07e25b52eead26f93ad2b52f9

image

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...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementRequires or request to feature enhancementneed-more-infoNeed more information (error message, stack trace, repro code etc)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions