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 loaded drivers and adopt lru_cache #2259

Merged
merged 1 commit into from
Aug 30, 2019
Merged

Cache loaded drivers and adopt lru_cache #2259

merged 1 commit into from
Aug 30, 2019

Conversation

ssbarnea
Copy link
Member

Caching loaded drivers has serious performance benefits, to have an idea
running unit tests went from ~4min to 1.5mins.

This change also replaces internal caching with stdlib lru_cache
implementation.

Signed-off-by: Sorin Sbarnea ssbarnea@redhat.com

Please include details of what it is, how to use it, how it's been tested
Please include an entry in the CHANGELOG.md if the change will impact users.

PR Type

  • Bugfix Pull Request
  • Docs Pull Request
  • Feature Pull Request

Caching loaded drivers has serious performance benefits, to have an idea
running unit tests went from ~4min to 1.5mins.

This change also replaces internal caching with stdlib lru_cache
implementation.

Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>
@ssbarnea ssbarnea marked this pull request as ready for review August 29, 2019 17:17
@ssbarnea ssbarnea self-assigned this Aug 29, 2019
@ssbarnea ssbarnea added this to the 3.0 milestone Aug 29, 2019
Copy link
Contributor

@fabianvf fabianvf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@ssbarnea ssbarnea merged commit 12a818f into ansible:master Aug 30, 2019
@ssbarnea ssbarnea deleted the fix/drivers-lru-cache-v2 branch August 30, 2019 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants