Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ General ➜ my experience using luajit in mushclient

my experience using luajit in mushclient

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Unia_nt   (17 posts)  Bio
Date Sat 30 Jan 2016 05:44 AM (UTC)
Message
I do a few test in mushclient with luajit engine (v2.04) and just want to share some my experience.

first of all, mushclient showed perfect compatibility with luajit, I just replace the original lua5.1.dll with luajit, so far everything works fine. Some modules I used a lot, such as addxml, wait, sqlite interface all works perfect! Thanks Nick, I love mushclient.

second the performance test, I calculate the static path with BFS algorithm, there are around 5600 rooms in sqlite database, this is the heaviest application I can find in my program, which used 20 seconds with original lua5.1 engine shipped with mushclient 5.0, and 14.7 seconds with luajit, around 25% performance increase.

finally, I won't move to luajit because:

1-I have no performance issue so far with original lua engine, the speed is enough for me.
2-luajit don't support un-defined functions when compile to bytecode, but original luac support. This means I can not pre-compile all my programs to bytecode if there are functions provided by mushclient, but no problem work with source file.
3-luajit don't support combine multiple input files when compile to single bytecode file where original luac supports. This is important to me since I like combine all my programs to 1-2 files, which avoid too many files when share with my friends.
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #1 on Sat 30 Jan 2016 08:47 AM (UTC)
Message
Thanks for sharing your results.

Personally I don't use LuaJIT - partly because I like to use "pure" Lua, and not rely on LuaJIT "almost" working.

However I believe a lot of people are happy with it, including Fiendish who uses it for performance boosts with Aardwolf.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


8,188 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.