lua-users home
lua-l archive

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


Hmm... Could it be that storing into a table starting at index zero makes Lua use more memory (bypassing a table optimization for numeric indexes starting at one)? Can anyone think of how to optimize this Lua implementation of fannkuch to use less memory?

http://shootout.alioth.debian.org/gp4/benchmark.php?test=fannkuch&lang=lua&id=0

   -Don

Don Hopkins wrote:
Lua has a lot of catching up to do if it wants to be as big and as slow as JavaScript.

http://shootout.alioth.debian.org/gp4/benchmark.php?test=all&lang=javascript&lang2=lua

Any guess why the one benchmark that Lua does badly on (using lots of memory, but not running slowly) is fannkuch?

http://shootout.alioth.debian.org/gp4/benchmark.php?test=fannkuch&lang=lua&id=0 http://shootout.alioth.debian.org/gp4/benchmark.php?test=fannkuch&lang=javascript&id=0

   -Don