[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: Light Userdata Question (Lua5)
- From: "Joshua Jensen" <jjensen@...>
- Date: Wed, 14 May 2003 19:11:35 -0600
> > When would I want to use light userdatas instead of
> full-fledged ones?
Userdata allocates memory. Especially in embedded environments, passing
a C pointer from C to Lua and back to C as full userdata, just to have
it allocate userdata memory, accumulate, and be garbage collected is a
terrible waste of time and space. Light userdata gets around this
limitation.
Josh