diff options
| author | Earlopain <14981592+Earlopain@users.noreply.github.com> | 2025-03-11 09:05:21 +0100 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2025-03-13 13:52:45 +0000 |
| commit | 67e6ccb23fd910b70b0d690adcb56395778c9f2a (patch) | |
| tree | 5dc120eb6ed80fc080e27aa8bbae5237e64e4bcf /include/ruby/internal/arithmetic | |
| parent | ee1f39ef882e7ce175794e6286c0dcafba0bfa35 (diff) | |
[ruby/prism] Optimize array inclusion checks in the parser translator
I see `Array.include?` as 2.4% runtime. Probably because of `LPAREN_CONVERSION_TOKEN_TYPES` but
the others will be faster as well.
Also remove some inline array checks. They are specifically optimized in Ruby since 3.4, but for now prism is for >= 2.7
https://github.com/ruby/prism/commit/ca9500a3fc
Diffstat (limited to 'include/ruby/internal/arithmetic')
0 files changed, 0 insertions, 0 deletions
