You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a demonstration, dropping the following import pkg_resources and hardcoding the version improves the import times significantly, from ~400ms down to ~20ms.
Importing
pkg_resources
is slow (see pypa/setuptools#926 et al).As a demonstration, dropping the following
import pkg_resources
and hardcoding the version improves the import times significantly, from ~400ms down to ~20ms.ripgrepy/ripgrepy/__init__.py
Lines 8 to 11 in 3fc9092
Baseline,
argparse
as example:ripgrepy,
pkg_resources
version:ripgrepy, hardcoded version:
The text was updated successfully, but these errors were encountered: