Conversation
15bdf68 to
ff9e07a
Compare
|
Hi! |
|
Hello @pscheri and thank you for chiming in. I wrote a migration page that illustrate how to migrate to I would be really interested in knowing if you have a usecase that is not cover by that, or if you have any feedback. Thanks! |
|
my use case is quite simple, but on top of those, I'm using the buffering size options: I can probably pass some of those somewhere else |
|
Thanks for the code example. I took a random 7G archive, and performed some timing checks. I used a level of For reference, here is the code with with open(tar_path, 'rb') as f_in:
with pyzstd.open(output_path, 'wb', level_or_option=3) as f_out:
shutil.copyfileobj(f_in, f_out, BUFFER_SIZE)
It seems that giving a bigger buffer size is not always the best, and in any case timings are in the 10% range (unless you give a buffer size too small). Also, the proposed alternative of Do you have a specific usecase for specifying the buffer sizes, or was it just for speed purposes? If so, did you make a benchmark on your own? |
4259bc3 to
1746868
Compare
|
The documentation has been updated to mention the |
Deprecated
compress_streamanddecompress_stream:@deprecateddecorator to mark them as deprecated📚 documentation preview 📚