lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


It was thus said that the Great Toninho once stated:
> Hi guys,
> 
> I've been using a system with Ubuntu 12.04 LTS and 4GB. Lua 5.2 was installed from official Ubuntu repository.
> My application is portable for Windows, Linux (Ubuntu) and Mac.
> .
> This program retrieves many information from script and build some objects in C++ and 
> 
> create an image. A performance test performed on Windows and on Ubuntu had the follow 
> 
> results (only Lua):
> 
> Ubuntu              Windows
> 
> 582.449 ms       210.224 ms
> 
> 
> This mail also includes a spreadsheet file with all results of test that can be load from 
> 
> this link: https://www.dropbox.com/s/qgh77cx014ra812/Results.xls.
> 
> 
> Anyone knows or have an idea that could help me?

  I had this problem ten years ago under Linux, where a library was compiled
so poorly, that a shell script could beat a C program:

	http://boston.conman.org/2003/01/12.1

  In your case, I would say that Lua under Ubuntu was compiled with
absolutely no optimizations.

> Is there a way to compile Lua with a maximum of speed and totally for 64 bits?

  You could try downloading the source code for Lua:

	http://www.lua.org/ftp/lua-5.2.2.tar.gz

and installing it from there.  At first, I would try a default compile and
if that doesn't improve the speed, then try adding optimizations.

  -spc