trengrj / recent

log bash history to an sqlite database
MIT License
53 stars 2 forks source link

Performance #5

Open trengrj opened 7 years ago

trengrj commented 7 years ago

On an older laptop I found performance regressions related to calling a python function as a simple executable via pip. This is because pip loads all of pkg_resources when acting as a wrapper for any script.

Applying the fix in https://github.com/ninjaaron/fast-entry_points has reduced the load time from 1.8s to 0.2s. This was done is version 0.1.3. I am contemplating rewriting in C for speed as any delay in the terminal is jarring.