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 regexp match on every call to Gem::Platform.local #7104

Merged

Conversation

segiddins
Copy link
Member

The result of arch would be ignored if @local is set, so wrap all
the logic in @local ||= to short-circuit everything

The result of `arch` would be ignored if `@local` is set, so wrap all
the logic in `@local ||=` to short-circuit everything
@segiddins segiddins merged commit 6936dc1 into master Oct 25, 2023
83 checks passed
@segiddins segiddins deleted the avoid-regexp-match-on-every-call-to-gem-platform.local branch October 25, 2023 18:51
deivid-rodriguez pushed a commit that referenced this pull request Nov 8, 2023
…ll-to-gem-platform.local

Avoid regexp match on every call to `Gem::Platform.local`

(cherry picked from commit 6936dc1)
deivid-rodriguez pushed a commit that referenced this pull request Nov 8, 2023
…ll-to-gem-platform.local

Avoid regexp match on every call to `Gem::Platform.local`

(cherry picked from commit 6936dc1)
deivid-rodriguez pushed a commit that referenced this pull request Nov 8, 2023
…ll-to-gem-platform.local

Avoid regexp match on every call to `Gem::Platform.local`

(cherry picked from commit 6936dc1)
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