luajit2 BUG

  • From: zzz654321 <zzz654321@xxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Thu, 10 Sep 2015 15:10:17 +0800 (CST)

local function fib(n )
if n < 3 then return n - 1 end
return fib(n - 2) + fib(n - 1)
end
local t1= os.clock() local t2= fib(32 ) t1=os.clock()- t1


on android, the code is very slow, please check the bug.

2.0.4 the code vs lua5.1.5 ### 100:1 ###

mt6592 lj2.0.4 13s lua5.1.5 0.13s

on android 2.1.0 compiler OK,
but run ERROR, "Segmentation fault."

Other related posts: