lua-users home
lua-l archive

Re: [ANN] Lua 5.2.0 (work1) now available

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


On Tue, Jan 12, 2010 at 1:41 PM, Roberto Ierusalimschy
<roberto@inf.puc-rio.br> wrote:
>> luaT_typenames[LUA_TLIGHTUSERDATA] and luaT_typenames[LUA_TUSERDATA]
>> should just be the same pointer to allow fast and safe
>> pointer comparision (and save 9 bytes ;).
Nice to see this thread converging, but I still don't get why
strcmp(t1, t2) wouldn't cut it.
The comparison is supposedly used only during error message handling,
no? Is this a valid target for such an optimization?
André

AltStyle によって変換されたページ (->オリジナル) /