Skip to content

[PRISM] Some compiler speed-ups - #16377

Merged
kddnewton merged 2 commits into
ruby:masterfrom
kddnewton:opt
Mar 12, 2026
Merged

[PRISM] Some compiler speed-ups#16377
kddnewton merged 2 commits into
ruby:masterfrom
kddnewton:opt

Conversation

@kddnewton

Copy link
Copy Markdown
Contributor
  • Cache the last line we looked up, and do a linear search from that point. In most cases we're walking the AST in a linear-ish order.
  • Use rb_integer_unpack and rb_int_uminus instead of construction a bunch of strings and doing rb_funcall.

@kddnewton
kddnewton merged commit 3f0e61f into ruby:master Mar 12, 2026
93 checks passed
@kddnewton
kddnewton deleted the opt branch March 12, 2026 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant