[JW Lua] LuaJIT - a much faster Lua interpreter/compiler
Thomas Weber
thomas.weber at notengrafik.com
Wed Jan 8 13:29:19 CET 2020
Hi Jan,
I moved from standard Lua 5.2 to LuaJIT for an unrelated project. I think processing time halved for our application. Required changes to the Lua code were marginal in my case. A little more work was required to make some C code (used for reading binary data with low level operations) work, but all of that was related to Lua state initialization. From 5.1 to 5.2, simpler initialization options were introduced. No changed to the actual "business logic" were required.
Judging from that, it might not be hard to port JWLua – but its C(++) part is tremendously more involved than mine, so I'm not sure.
Thomas
Am 08.01.20 um 12:27 schrieb Jan Angermüller:
Hello Jari et al,
in the last days I have run a few tests with LuaJIT (JIT=Just in time-compiler) as I am still looking for efficient ways to make my Perfect Layout plug-in faster. According to their homepage ( http://luajit.org ) their LuaJIT.exe runs Lua code about 3x - 100x faster than the original Lua52.exe implementation.
In some typical tests that I assume are similar to my JW Lua code and that usually take about 4-6 hours with Lua52, LuaJIT needed just about 1,5 hours, so about 3-4 times faster without changing any code.
It's not possible to test it directly in JW Lua as you can't include the LuaJIT object code in JW Lua, but I guess it would be possible to use it if JW Lua was updated to be able to use LuaJIT.
Anyone with more experience on that topic?
The only problem I see at the moment:
LuaJIT uses an extended version of Lua 5.1 with many features from 5.2, but it is not fully compliant with 5.2 - while JW Lua uses 5.2.
So I don't know if it will really work or if there are any JW Lua features that should be avoided.
Best,
Jan
_______________________________________________
JWLua mailing list
JWLua at jwmusic.nu<mailto:JWLua at jwmusic.nu>
http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu
--
Notengrafik Berlin GmbH
HRB 150007
UstID: DE 289234097
Geschäftsführer:
Thomas Weber und Werner J. Wolff
fon: +49 30 25359505
Friedrichstraße 23a
10969 Berlin
notengrafik.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20200108/cdef8556/attachment.htm>
More information about the JWLua
mailing list