[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: Reuse of userdata?
- From: "Richard Ranft" <rranft@...>
- Date: Sat, 10 Jan 2004 10:41:33 -0800
Is the object of this to create a sort of pool of "reuseable" userdata
instances to avoid allocation overhead? What about a reference-counting
scheme? Have the pool manager hold a reference to the userdata instance,
and farm out a second reference to the light object using it, then drop the
second ref when it's done, and drop the last ref when the pool manager
drops.
Um, looks good on paper....
And I have no real idea what I'm talking about. I haven't gotten to
actually adding Lua to my project yet, I'm just lurking to see what others
are up to.
Rich