msgpack-lite icon indicating copy to clipboard operation
msgpack-lite copied to clipboard

Is it possible for msgpack-lite to decode data as it is streamed in?

Open o5k opened this issue 3 years ago • 0 comments

Currently, the library seems to only decode data once an object is complete, as far as I can tell from benchmarking.

Am I missing something, or is this indeed how the decode stream operates? If so, is the ability to decode during transit planned? Otherwise, what might I be doing wrong? For my benchmark, I simply stream in all the bytes for a large object (115kB if as JSON) except for the last, then measure the time it takes between sending the last byte and receiving the data.

o5k avatar Feb 24 '22 23:02 o5k