what-the-pack
what-the-pack copied to clipboard
Ultra-fast MessagePack for NodeJS & Browsers | msgpack.org[Javascript/NodeJS]
- https://github.com/kawanet/msgpack-lite/issues/87#issuecomment-396380292 - https://github.com/ygoe/msgpack.js
https://appspector.com/blog/how-to-improve-messagepack-javascript-parsing-speed-by-2-6-times
Could be user error, but using register to try to use dictionary results in the same output as not using it. I'm using exactly as per docs example.
Usage of Buffer isn't really necessary for browsers. We just want simpler functions that let us encode and decode data to/from UInt8Array instances. Looking at https://github.com/feross/buffer/blob/master/index.js the implemetation actually has...
#### Overview - Transforms class instances into lower-level data structures upon encode, then back to class instances upon decode - On encoding, class instances are identified / recognized by using...
`internalEncode` and `internalDecode` must be wrapped in ONE try-catch block to catch encoding and decoding errors. Doing the try-catch block within (instead outside) will nest it recursively and will be...
Additional Optional Initialization Options - ignoreUndefined : `boolean` ignores object properties with `undefined` value - ignoreEmptyObjects : `boolean` ignores empty objects - ignoreEmptyArrays : `boolean` ignores empty arrays References -...
For implementation correctness, the byteOffset must be considered. https://stackoverflow.com/a/54646864
#### Overview - [ ] Document usage in `README` - [ ] Provide simple wrapper functions that automatically encodes parameters, and decodes responses ```js const { encode, decode } =...