Skip to content

ZJIT: Add Ruby fast-path for Integer#step - #1105

Closed
efegokdemir wants to merge 1 commit into
Shopify:masterfrom
efegokdemir:efe/zjit-integer-step-fastpath-1090
Closed

efegokdemir wants to merge 1 commit into
Shopify:masterfrom
efegokdemir:efe/zjit-integer-step-fastpath-1090

Conversation

@efegokdemir

Copy link
Copy Markdown

Fixes #1090. Adds a Ruby fast path for Integer#step with two Fixnum arguments and a block, letting ZJIT inline the loop. Other argument forms are forwarded to the existing C implementation. The ZJIT regression test covers ascending, descending and empty ranges; test_numeric.rb passes under ZJIT (27 tests, 498 assertions).

@github-actions github-actions Bot added the jit label Nov 5, 2026
@tekknolagi

Copy link
Copy Markdown

Please file PRs to ruby/ruby.

@tekknolagi tekknolagi closed this Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ZJIT: Add Ruby fast-path for Integer#step

2 participants