stan-dev / httpstan

HTTP interface to Stan, a package for Bayesian inference.
ISC License
39 stars 15 forks source link

feat: Use zlib instead of lz4 #580

Closed riddell-stan closed 2 years ago

riddell-stan commented 2 years ago

Use zlib instead of lz4 to compress cached fits. zlib is part of the Python standard library, lz4 is not. In simple performance tests, zlib appears faster in the particular setting relevant here.


This makes things slightly faster, it would seem. And it removes a dependency on lz4, which, as I write this, does not have a Python 3.10 wheel available.