lua-users home
lua-l archive

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


On 18.10.11 12:36, Oskar Forsslund wrote:
since i almost only do c++ calls from lua I figured this was the main
part that took time (the calling that is) and tried to minimize this by
not changing between lua and c++ more than necessary and thought this
would help and was really surprised when it didn't

But what you did was just shuffling around the calls. I am not an expert on Lua internals but one can easily imagine that under the hood the Lua virtual machine does the exact same thing you try to do by hand.

You may try to optimize your Lua API usage (to minimize the data conversions between Lua and C) or see if LuaJIT and its FFI helps.

--
regards,
Jakub Piotr Cłapa