Skip to content

(HI-239) Cherry pick speedup from master (from #22142) #191

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

Merged

Conversation

hlindberg
Copy link
Contributor

No description provided.

Eric Sorenson and others added 2 commits May 19, 2014 15:02
Previously, hiera would look up the 'datadir' from config
inside the loop where it looks inside datafiles. This caused
substantial slowdowns on sites with deep hierarchies.

This commit moves the datadir lookup to be outside the
the datasource-search loop and caused substantial speedups.
(Timings are in the original ticket).

This patch was written by Sean Millichamp; I just rebased it
onto the current state of Hiera and submitted it on his behalf.
The patch to reduce the work done when traversing the hierarchy
duplicated the datafile() method from Backend. This removes the
duplicate code from the yaml backend and creates a new method on Backend
to get just the files associated with the hierarchy.
@puppetcla
Copy link

CLA signed by all contributors.

kylog pushed a commit that referenced this pull request May 19, 2014
…m-master

(HI-239) Cherry pick speedup from master (from #22142)
@kylog kylog merged commit b9223b3 into puppetlabs:stable May 19, 2014
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.

None yet

5 participants