Skip to content

Releases: AronParker/brotlic

0.8.2

27 Jan 13:40
Compare
Choose a tag to compare
  • Update brotli submodule to latest version

0.8.1

14 Jan 14:09
d25f7ce
Compare
Choose a tag to compare
  • Add compress_estimate_max_mem_usage

0.8.0

14 Aug 12:15
Compare
Choose a tag to compare

This release removes allocator support because it suffers from several issues:

  1. It misuses the GlobalAlloc trait as opposed to the Allocator api to remain stable. The allocator API would be the best fit but it is currently unstable.

  2. Secondly it uses a double Box to pass the GlobalAlloc trait object, because trait objects are fat pointers and across FFI boundaries for the brotli API only thin pointers are accepted. This would be more efficiently done using a ThinBox, which would only allocate once instead of twice.

  3. Performance improvements are negligible

I plan to readd support later under a feature gate. Preferably once the required primitives are stabilized.

0.7.0

02 May 13:04
Compare
Choose a tag to compare

This release adds custom memory allocator support. Currently it is based on the GlobalAlloc trait. This is subject to change when the allocator_api gets stabilized.

The following new APIs were added:
DecompressorReader<R>::new_in
CompressorReader<R>::new_in
CompressorWriter<W>::new_in
DecompressorWriter<W>::new_in
BrotliDecoder::new_in
BrotliEncoder::new_in
BrotliDecoderOptions::build_in
BrotliEncoderOptions::build_in