-
Notifications
You must be signed in to change notification settings - Fork 113
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
Make the buffer size configurable? #300
Comments
Related hail-is/hail#14033 |
Hi, and thanks for the request! Indeed, it would likely make sense to expose a way to set a custom buffer size. I'm surprised by the 12% saving reported in that hail ticket though. I think they changed the internal block size, not just the output buffer size. This buffer is not going to affect compression ratio, only potentially reduce the number of times things need to be copied between zstd's own internal buffer, this output buffer, and the actual writer destination. |
Yeah that sounds reasonable. Because speed is desired for certain workloads e.g., anza-xyz/agave#2729, it'll be great to expose the buffer size option to the user. |
The writer::new function has hardcoded buffer value.
Can we make the buffer size configurable? I'd like to experiment with different buffer sizes and see if that helps with compression ratio/speed.
The text was updated successfully, but these errors were encountered: