SpringMT / zstd-ruby

Ruby binding for zstd(Zstandard - Fast real-time compression algorithm)
https://github.com/facebook/zstd
BSD 3-Clause "New" or "Revised" License
69 stars 16 forks source link

Add support for dictionary use with streaming operations #62

Closed AndrewCEmil closed 7 months ago

AndrewCEmil commented 1 year ago

This PR implements streaming compression/decompression using raw dictionary bytes. Essentially, this is very similar to the dictionary usage for the Zstd.compress_using_dict and Zstd.decompress_using_dict calls, except that the dictionary is added as an optional kwarg instead of as a new function.

Please let me know if you would like to see any changes, more testing, etc.

Should resolve the main part of https://github.com/SpringMT/zstd-ruby/issues/61

Thanks!

SpringMT commented 7 months ago

I am so sorry for the delay 🙇 Thank you!