tario/fastruby — Issue #60: Existent method optimization
Author: tario
Created: 2011-12-18 14:34:57+00:00
State: open
Labels: high

def foo(i)
ret = 0
while (i>0)
ret = ret + i
i = i-1
end

ret
end

method(:foo).optimize! # load the method with fastruby to improve performance