Skip to content

v2.0.0

Choose a tag to compare

@milesgranger milesgranger released this 18 Feb 15:06
· 163 commits to master since this release

New commits

  • Reduce allocations & accept bytes and bytearray inputs (#22) a7c41df
  • Support PyPy builds - not Windows (#28) e94b30f
  • Support de/compress_into (#26) 67f368c

Notes

  • Variants are moved to their own modules. ie snappy_compress is now cramjam.snappy.compress
  • Accept both bytes and bytearray objects and returns the same.
  • Accept an optional output_len when the output of (de)compression is known; giving a 1-3x performance increase
    • While this is supported in snappy as well, when using bytearray as input, the output size is automatically calculated and the resulting buffer is resized after (de)compression.
  • New de/compress_into for all variants, except lz4
  • PyPy3.6 supported for OSX and Linux
  • Python 3.9 support