[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: ways to avoid (or speed up) luaL_checkudata() in LuaJIT2?
- From: Leo Razoumov <slonik.az@...>
- Date: Sun, 7 Nov 2010 09:55:31 -0500
On Sat, Nov 6, 2010 at 09:48, liam mail <liam.list@googlemail.com> wrote:
>>
> In my experience lua_getmetatable and luaL_checkudata in Lua (not checked
> with LuaJit) are bottlenecks, which I have gone out of my way to avoid.
I think that lua_getmetatable is just fine. It is luaL_getmetatable
that can become a bottleneck due to its string allocations via
luaS_newlstr.
--Leo--