Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

Customize encode/decode buffer size #44

Open
andyxning opened this issue Dec 24, 2018 · 0 comments
Open

Customize encode/decode buffer size #44

andyxning opened this issue Dec 24, 2018 · 0 comments

Comments

@andyxning
Copy link

andyxning commented Dec 24, 2018

Why we can not customize encode/decode buffer size when initializing a new reader or writer through a function argument.

NSQ use snappy for its message encode/decode with one connection one snappy encoder/decoder. This will consume more and more memory according to the connections number as each connection will use 64KB memory.

Also, this is more friendly for uses cases where the uncompressed data are almost all in small size.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant