tario / fastruby

Fastruby, fast execution of ruby code (please, killme)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Existent method optimization

tario opened this issue · comments

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