Skip to content

[Idea] May be consider msgpackr? #10

@shitpoet

Description

@shitpoet

msgpackr is an optimized msgpack-compatible library.

https://github.com/kriszyp/msgpackr

It has node.js native c++ extension to speed up working with strings, and so it is more on par with native JSON, at least at the node part.

Benchmarks in the article by the author show good performance

link - https://dev.doctorevidence.com/building-the-fastest-js-de-serializer-a413a2b4fb72

Note: But it should be noted that JSON.parse/stringify are benchmarked with string-to-binary and binary-to-string conversion time included. So msgpackr is still slower than JSON in browsers, where there is no custom native extension available.

I've thought may be developers of this package could be interested in exploring this. May be on some next major release on next protocol upgrade or something like that.

Feel free to close this)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions