Skip to content
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

speed or compression optimization #41

Closed
kawanet opened this issue Jun 28, 2016 · 1 comment
Closed

speed or compression optimization #41

kawanet opened this issue Jun 28, 2016 · 1 comment

Comments

@kawanet
Copy link
Owner

kawanet commented Jun 28, 2016

see #10

var mplite = require('msgpack-lite');
var mpnat = require('msgpack');
mplite.encode({65535: 0}); // <Buffer 81 a5 36 35 35 33 35 00>
mpnat.pack({65535: 0}); // <Buffer 81 cd ff ff 00>

The integer map key cd ff ff is 3 bytes shorter than the string map key a5 36 35 35 33 35 at this example above.

@kawanet
Copy link
Owner Author

kawanet commented Jun 28, 2016

{optimize: 1} option cancelled.

@kawanet kawanet closed this as completed Jun 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant