rapidfuzz / RapidFuzz

Rapid fuzzy string matching in Python using various string metrics
https://rapidfuzz.github.io/RapidFuzz/
MIT License
2.61k stars 116 forks source link

Consider using the stable API #340

Closed maxbachmann closed 1 year ago

maxbachmann commented 1 year ago

switching to the minimal C-API would drastically reduce the amount of binaries we need to build. 1) get branch to build with minimal API. This should largely be a config thing, since I think cython, scikit-build and cibuildwheel all support the stable API at this point (not supported for PyPy) 2) test the performance impact. I expect it to be very small for everything except array conversion which is a very niche usage.

maxbachmann commented 1 year ago

Cyhon does not support the limited Python API yet. Even when it does it will likely have a pretty large performance overhead for the time being.