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

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

Open
o5k opened this issue Feb 24, 2022 · 0 comments
Open

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

o5k opened this issue Feb 24, 2022 · 0 comments

Comments

@o5k
Copy link

o5k commented Feb 24, 2022

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.

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