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 a hash allocation when calling def f(kw: 1) with keyword splat #10151

Merged

Conversation

jeremyevans
Copy link
Contributor

c20e819 made calling a method that accepts specific keywords but not a keyword splat with a keyword splat allocating a hash when it previously did not.

Instead of duplicating the hash and removing hash entries, lookup in the provided hash without duplicating the hash, and track to make sure all hash entries in the hash were looked up (extra hash entries would be errors).

c20e819 made calling a method
that accepts specific keywords but not a keyword splat with a keyword
splat allocating a hash when it previously did not.

Instead of duplicating the hash and removing hash entries,
lookup in the provided hash without duplicating the hash, and
track to make sure all hash entries in the hash were looked up
(extra hash entries would be errors).
Copy link

launchable-app bot commented Feb 29, 2024

Launchable Report

❌ Test session #2671417 failedos:macos-arm-oss test_opts:--repeat-count:2 test_task:test-all
🔔 no issues ✖️1 test failed ✔️49617 tests passed

❌ Test session #2671438 failedos:ubuntu-20.04 test_opts: test_task:check
🔔 no issues ✖️1 test failed ✔️23771 tests passed

Passed test sessions

✅ Test session #2671415 passed os:macos-arm-oss test_opts: test_task:check
✅ Test session #2671426 passed os:ubuntu-20.04 test_opts:--enable-shared--enable-load-relative test_task:check
✅ Test session #2671427 passed os:ubuntu-20.04 test_opts:--disable-yjit test_task:check
✅ Test session #2671434 passed os:ubuntu-20.04 test_opts:cppflags:-DVM_CHECK_MODE test_task:check
✅ Test session #2671439 passed os:macos-13 test_opts: test_task:check
✅ Test session #2671442 passed os:macos-12 test_opts: test_task:check

Build: refs_pull_10151_merge_8c0ce023d4e586bf07afa1af350e1d3896fb2f94

@jeremyevans jeremyevans merged commit aceee71 into ruby:master Mar 15, 2024
96 checks passed
fable-stripe pushed a commit to fable-stripe/ruby that referenced this pull request Mar 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants