takluyver / entrypoints

Discover and load entry points from installed packages
https://entrypoints.readthedocs.io/
MIT License
74 stars 29 forks source link

Cache the path iteration #25

Closed asottile closed 5 years ago

asottile commented 6 years ago

A quick attempt at #16

Based on findings in https://github.com/pytest-dev/pluggy/issues/183#issuecomment-435429649

RonnyPfannschmidt commented 6 years ago

how about leaving the iter variants non-cached - and having cached get variants that return actual lists

asottile commented 6 years ago

how about leaving the iter variants non-cached - and having cached get variants that return actual lists

that wouldn't help, you'd still incur a full filesystem traversal for every consumer

asottile commented 5 years ago

closing since I take it this isn't going to be accepted --