[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Pushing a UserData pointer?
- From: Mark Hamburg <mhamburg@...>
- Date: Tue, 17 May 2005 15:15:47 -0700
I implemented something essentially like lua_pushuserdata a while ago. I
dropped it after a while because it carries with it the risk of corrupting
the Lua state if the object has been collected or isn't really a userdata.
Mark
on 5/16/05 8:40 PM, Chris Marrin at chris@marrin.com wrote:
> That's what I was doing originally. When I moved to the "hack" version,
> I doubled the speed of my test cases. It's not surprising. Looking at
> the two table lookups, I was having to go through a couple of hundred
> statements. Implementing lua_pushuserdata() dropped that down to about 8!
>
> Still a long way to go, but I'm getting closer. Thanks for the
> suggestions...