开发者

Is there a python wrapper for a FastLZ implementation

开发者 https://www.devze.com 2023-01-02 03:00 出处:网络
Looking to use Fas开发者_JAVA技巧tLZ in Python, or something similar. Tried Google and didn\'t find anything. Wondering if there is another algorithm with similar performance available in Python?What

Looking to use Fas开发者_JAVA技巧tLZ in Python, or something similar. Tried Google and didn't find anything. Wondering if there is another algorithm with similar performance available in Python?


What about using ctypes to call directly into fastlz.so (or .dll as the case may be)? It seems to have only 3 entry points, so wrapping them in ctypes should not be hard. Yes, SWIG or a custom C API wrapper should be almost as trivial, but ctypes lets you start experimenting right now even if you don't have a compiler (as long as you can get a working DLL/so of FastLZ for your platform)... hard to beat!-)


Blosc exposes FastLZ and several other compressors in Python.

0

精彩评论

暂无评论...
验证码 换一张
取 消