[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Which is faster?
- From: "Thiago Bastos" <hellraider@...>
- Date: Wed, 28 May 2003 20:29:19 -0300
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