I am the author of https://pypi.org/project/cython-zstd/ and I advise Debian to 
rather package it.

https://pypi.org/project/zstd/ issues:
- written in pure C: writing bindings without Cython is really looking for bugs
- it fails to compress b''

Other advantage of https://pypi.org/project/cython-zstd/:
- as an optimization, compress() resizes the output buffer rather than doing a 
copy or waste memory ('zstd' egg does the latter)

Unfortunately, for the only place where I planned to use zstd in a Python 
program, gzip remains better ( https://github.com/facebook/zstd/issues/1134 ). 
So I didn't follow recent changes in zstd API and I see that 
https://pypi.org/project/zstd/'s compress gained a 'threads' parameter (which 
https://pypi.org/project/cython-zstd/ does not have).

On https://lab.nexedi.com/nexedi/cython-zstd you'd find 2 branches:
- debian, where I started Debian packaging
- stream, for the stream API: I don't remember if it's working

Julien

Reply via email to