darvid / python-hyperscan

🐍 A CPython extension for the Hyperscan regular expression matching library.
https://python-hyperscan.readthedocs.io/en/latest/
MIT License
165 stars 28 forks source link

Import time slowness due to pkg_resources #38

Closed kaiw closed 2 years ago

kaiw commented 2 years ago

hyperscan itself takes basically no time to import, but its use of pkg_resources makes it slow. On my current system, pkg_resources takes approximately 140ms, and appears to be used here only to provide __version__. For applications sensitive to start-up times, it would be nice to be able to avoid this cost.

darvid commented 2 years ago

fixed in 0.3.0