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

(MODULES-7319) Call "semodule --list" only once. #23

Merged
merged 1 commit into from Mar 20, 2020

Conversation

montaguethomas
Copy link
Contributor

@montaguethomas montaguethomas commented Feb 25, 2020

Add method to base class to statically load results of
"semodule --list" command. Store output parsed into hash with keys
being module name and value being module version. Add prefetch method
to initially populate hash.

This change results in a substantial performance increase when checking
current resource state, on the order of 50% or more.

@montaguethomas montaguethomas force-pushed the feature/selmodule-perf branch 4 times, most recently from 39b208f to 99b598d Compare February 25, 2020 20:02
@mihaibuzgau mihaibuzgau requested a review from a team February 26, 2020 06:52
Add method to base class to statically load results of
"semodule --list" command. Store output parsed into hash with keys
being module name and value being module version. Add prefetch method
to initially populate hash.

This change results in a substantial performance increase when checking
current resource state, on the order of 50% or more.
@gimmyxd gimmyxd merged commit 68781d9 into puppetlabs:master Mar 20, 2020
@gimmyxd gimmyxd added the enhancement New feature or request label Mar 27, 2020
@montaguethomas montaguethomas deleted the feature/selmodule-perf branch March 29, 2020 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants