lua-users home
lua-l archive

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


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