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

ZSTD compression support #1815

Open
sidorares opened this issue Jan 30, 2023 · 1 comment
Open

ZSTD compression support #1815

sidorares opened this issue Jan 30, 2023 · 1 comment

Comments

@sidorares
Copy link
Owner

sidorares commented Jan 30, 2023

currently only CLIENT_COMPRESS capability flag is supported ( inflate/deflate - https://www.rfc-editor.org/rfc/rfc1951.html )

when server sends CLIENT_ZSTD_COMPRESSION_ALGORITHM (1UL << 26) the client may elect to accept it

http://facebook.github.io/zstd/

https://dev.mysql.com/doc/dev/mysql-server/latest/page_protocol_basic_compression.html
https://dev.mysql.com/doc/dev/mysql-server/latest/group__group__cs__capabilities__flags.html

looks like not in the node core, and most packages are compiled binary.
have as optional dependency and accept if installed?

https://github.com/mongodb-js/zstd

@dveeden
Copy link

dveeden commented Mar 15, 2024

Note that "Protocol::HandshakeResponse41" gets an extra field if CLIENT_ZSTD_COMPRESSION_ALGORITHM is set for the zstd_compression_level.

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

No branches or pull requests

2 participants