[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Adding lightuserdatas that are invisible to scripts
- From: Ignacio Burgueño <ignaciob@...>
- Date: Wed, 21 May 2008 15:38:16 -0300
Graham Wakefield wrote:
I think function upvalues are faster in general. On the other hand
registry also has the advantage that it works for all functions, not
just a chosen few, and can scale to any number of needed C++
objects (plus, if speed is an issue, lua_rawget will be faster than
lua_getfield). If the number of functions to be used is small, and the
number of C++ objects is small, then function upvalues are likely better.
Ok, thanks for the explanation.
Regards,
Ignacio Burgueño