Skip to content

Commit 2deed53

Browse files
committed
[GR-29207] Always split Numeric#step
* It's above 100 AST nodes (SplittingMaxCalleeSize) but it's always worth splitting. * Numeric#step is heavily used in OptCarrot.
1 parent 566245f commit 2deed53

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/ruby/truffleruby/core/numeric.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ def step(orig_limit = undefined, orig_step = undefined, by: undefined, to: undef
9393

9494
self
9595
end
96+
Truffle::Graal.always_split instance_method(:step) # above 100 nodes but always worth splitting
9697

9798
def truncate
9899
Float(self).truncate

0 commit comments

Comments
 (0)