Skip to content

Conversation

@pull
Copy link

@pull pull bot commented Nov 30, 2025

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

peterzhu2118 and others added 8 commits November 29, 2025 18:53
This is more concise and ruby does a better job performance-wise.

This used to be `bsearch_index` already but ruby/prism@6d8358c changed it.
ruby/prism#1733 (comment) said:
> Yeah the edge case was that the value matched an element exactly

But surely there would be a test to show this behaviour?

Gets called as part of pretty-printing nodes.
Further reduces the time for `SnapshotsTest` by ~16% for me.

ruby/prism@f448e2b995
When a pattern match is using a string as a hash pattern key and is
using it incorrectly, we were previously assuming it was a symbol.
In the case of an error, that's not the case. So we need to add a
missing node in this case.

ruby/prism@f0b06d6269
ruby/prism@198080c106

Co-authored-by: Steven Johnstone <steven.james.johnstone@gmail.com>
ruby/prism@e24e701f3a

Co-authored-by: Steven Johnstone <steven.james.johnstone@gmail.com>
@pull pull bot locked and limited conversation to collaborators Nov 30, 2025
@pull pull bot added the ⤵️ pull label Nov 30, 2025
@pull pull bot merged commit e3bc185 into turkdevops:master Nov 30, 2025
1 of 2 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants