Reputation: 4003
Looking to use FastLZ in Python, or something similar. Tried Google and didn't find anything. Wondering if there is another algorithm with similar performance available in Python?
Upvotes: 1
Views: 743
Reputation: 882481
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!-)
Upvotes: 4