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

Optimize #83

Closed
wants to merge 4 commits into from
Closed

Optimize #83

wants to merge 4 commits into from

Conversation

h0tw1r3
Copy link
Contributor

@h0tw1r3 h0tw1r3 commented Jan 19, 2024

  • read file by line until match
  • only read files once per check
  • prefer include over match
  • support hiera datadir

Replacing readlines.grep also happens to fix #63.
Tried to create a test, but I was unable to reproduce outside of a production environment.

* read file by line until match
* only read files once per check
* prefer include over match

replacing readlines.grep happens to fix voxpupuli#63
Copy link
Contributor

@zilchms zilchms left a comment

Choose a reason for hiding this comment

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

LGTM, but i will ask someone with more ruby experience to look over it too, before merging

@bastelfreak
Copy link
Member

@h0tw1r3 thanks a lot for the PR! Code looks really good. One nitpick: I'm not sure how we can give those changes a proper PR title. Do you have an idea? Otherwise could you split those commits up into 4 PRs maybe?

@h0tw1r3 h0tw1r3 closed this Jan 29, 2024
@h0tw1r3
Copy link
Contributor Author

h0tw1r3 commented Jan 29, 2024

superseded by #84 #85 #86 #87

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.

Getting 'ArgumentError: invalid byte sequence in UTF-8' when using ghostbuster_facts
3 participants