-
I've found that I'm thinking a way to serialize an object and receive the same output, no matter if I pushed/spliced/whatever the arrays, Maps and Sets. Is this msgpackr case? Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Yes, msgpackr is deterministic: ordering of serialization follows the natural iterative order of objects, maps, and sets (order of insertion). |
Beta Was this translation helpful? Give feedback.
-
Yes, all msgpackr serialization should be deterministic, including arrays (exactly identical arrays should serialize to identical binary output). The native addon is only used for decoding/deserialization. |
Beta Was this translation helpful? Give feedback.
Yes, msgpackr is deterministic: ordering of serialization follows the natural iterative order of objects, maps, and sets (order of insertion).