Android performance drop moving from LuaJIT-2.0.1 -> LuaJIT-2.0.2 ?

  • From: "Kriss@xxxxxxxx" <Kriss@xxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Wed, 4 Sep 2013 17:59:28 +0100

Hiya,

First off I would like to apologise for this probably being my fault... :)


I seem to be experiencing a huge lua speed drop when using LuaJIT-2.0.2 on
android, code that was previously clocking in at around 5ms now take 100ms

Dropping back to LuaJIT-2.0.1 fixes the problem.

Running LuaJIT-2.0.2 with "jit.off()" fixes the problem.

So it does seem to be something to do with a change in the JIT code.


This also seems to be something to do specifically with Android rather than
ARM, I'm also running luajit on the Raspberry Pi (although built with
different flags) and not experiencing the same problem.

Currently testing primarily on a Nexus7.


I'm cross compiling luajit for android with the following flags.

HOST_CC="gcc -m32" CROSS=arm-linux-androideabi- TARGET_CFLAGS="
-march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3 "


This is part of a reasonably large project and it is of course possibly I
have some other strangeness somewhere that is triggering the problem. Still
the moving from 2.0.1 to 2.0.2 is my biggest clue on where the problem is
so I'm hoping to try and work out exactly what that change was.

Maybe if you would like to point me at some possible changes between the
two releases that could be causing this I can try small changes to the code
to see if I can pinpoint the precise cause?


Cheers,

-- 
Kriss

http://www.WetGenes.com/

Other related posts: