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

Avoid some allocations when evaluating ruby Gemfile DSL #7251

Merged
merged 1 commit into from Dec 12, 2023

Conversation

martinemde
Copy link
Member

What was the end-user or developer problem that led to this PR?

Noticed a little refactoring opportunity when working on #7250.

What is your fix for the problem, implemented in this PR?

Avoids allocating an empty hash, which naturally cuts down on hash lookups.

Make sure the following tasks are checked

@deivid-rodriguez deivid-rodriguez merged commit 2c02993 into master Dec 12, 2023
80 checks passed
@deivid-rodriguez deivid-rodriguez deleted the refactor-ruby-dsl branch December 12, 2023 15:25
@deivid-rodriguez deivid-rodriguez changed the title Make RubyDsl a little easier to read; avoid a Hash sometimes Avoid some allocations when evaluating ruby Gemfile DSL Dec 14, 2023
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

2 participants