lua-users home
lua-l archive

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


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...