lua-users home
lua-l archive

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


As per Ivan-Assen Ivanov's promise, I'll share some profiling results
of running Lua under the TLSF allocator
( http://www.baisoku.org/tlsf/index.html ). With the new 1.6 version
which supports smart reallocation, we have a 2% performance increase in
our game title. This would mean that the speedup of the Lua code
execution should be at least 10-20%. I haven't measured it - this is an
estimate based on what percent of the time goes into our world
simulation run by Lua.

So, just changing the standard malloc with the TLSF-provided functions
led to a very nice performance boost for us. (For your information, we
have 10000-50000 allocations per second coming from Lua, based on the
current load of the system)

Best regards,
Ivko