lua-users home
lua-l archive

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


Hi,

When getting null-terminated strings from Lua, does lua_strlen() offer any speed advantage over regular strlen() calls?

I imagine Lua stores string lengths in its objects, but am not sure if going through Lua's internal structures will really eat less cpu cycles than doing a strlen().

Does anyone here know that for sure?

Thanks!
Thiago Bastos