<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div class="moz-cite-prefix">Hi Jan,</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">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.<br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">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.</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Thomas<br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Am 08.01.20 um 12:27 schrieb Jan Angermüller:<br>
</div>
<blockquote type="cite" cite="mid:d96e5770-fab1-8ca4-2807-670ad2acd1bc@angermueller.com">
Hello Jari et al,<br>
<br>
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 (
<a class="moz-txt-link-freetext" href="http://luajit.org" moz-do-not-send="true">
http://luajit.org</a> ) their LuaJIT.exe runs Lua code about 3x - 100x faster than the original Lua52.exe implementation.<br>
<br>
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
<b>3-4 times faster </b>without changing any code.<br>
<br>
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.<br>
<br>
Anyone with more experience on that topic?<br>
The only problem I see at the moment:<br>
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.
<br>
So I don't know if it will really work or if there are any JW Lua features that should be avoided.<br>
<br>
Best,<br>
Jan<br>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
JWLua mailing list
<a class="moz-txt-link-abbreviated" href="mailto:JWLua@jwmusic.nu">JWLua@jwmusic.nu</a>
<a class="moz-txt-link-freetext" href="http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu">http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu</a>
</pre>
</blockquote>
<p><br>
</p>
<pre class="moz-signature" cols="0">--
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</pre>
</body>
</html>