Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache the entry points discovered within a namespace #3

Merged
merged 1 commit into from
Nov 26, 2012

Conversation

dhellmann
Copy link
Contributor

Scanning the entry point registry is relatively expensive
and causes performance issues with unit tests of code
depending on stevedore. This change addresses the
performance issues by caching the entry points as
they are loaded from pkg_resources in a class attribute
in the base class of the extension managesr so they can
be reused by other instances.

Change-Id: Iba7bee6790cdedc94cb537e2ed6e12219c85f26a
Signed-off-by: Doug Hellmann doug.hellmann@dreamhost.com

Scanning the entry point registry is relatively expensive
and causes performance issues with unit tests of code
depending on stevedore. This change addresses the
performance issues by caching the entry points as
they are loaded from pkg_resources in a class attribute
in the base class of the extension managesr so they can
be reused by other instances.

Change-Id: Iba7bee6790cdedc94cb537e2ed6e12219c85f26a
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
@dhellmann
Copy link
Contributor Author

I've also sent this to Monty Taylor to review, so please don't merge until he's had a chance to look at it.

markmcclain added a commit that referenced this pull request Nov 26, 2012
Cache the entry points discovered within a namespace
@markmcclain markmcclain merged commit 2106ab5 into dreamhost:master Nov 26, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants