Skip to content

Improve module validation performance#193

Merged
jordanbreen28 merged 1 commit intopuppetlabs:mainfrom
seanmil:perf_fix
Jul 14, 2023
Merged

Improve module validation performance#193
jordanbreen28 merged 1 commit intopuppetlabs:mainfrom
seanmil:perf_fix

Conversation

@seanmil
Copy link
Contributor

@seanmil seanmil commented Jul 13, 2023

Validate that each module exists only once, as that module is being processed.

Summary

During module cloning, the module validation function is called for all modules on each iteration
through the module list, resulting in the cloning taking much longer than it needs to.

This change adjusts the code to validate one module at a time as that module is being
processed.

Checklist

  • 🟢 Spec tests.
  • 🟢 Acceptance tests.
  • Manually verified.

Validate that each module exists only once, as that module is
being processed.
@seanmil seanmil requested a review from a team as a code owner July 13, 2023 18:11
@CLAassistant
Copy link

CLAassistant commented Jul 13, 2023

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@jordanbreen28 jordanbreen28 left a comment

Choose a reason for hiding this comment

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

@seanmil This is great! 💯
I'll merge if tests are green, this is a mega improvement. Thank you :-)

@jordanbreen28
Copy link
Contributor

Pulled and manually verified!
Thanks again @seanmil!

@jordanbreen28 jordanbreen28 merged commit 6557831 into puppetlabs:main Jul 14, 2023
@seanmil seanmil deleted the perf_fix branch October 16, 2023 18:12
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.

4 participants