[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Another attempt at SpeedingUpStrings
- From: "Javier Guerra" <javier@...>
- Date: Mon, 17 Dec 2007 12:43:31 -0500
On 12/17/07, Mark Hamburg <email@example.com> wrote:
> But my concern on string speed has more to do with pushing table keys from C
> code. A relatively large amount of work goes into finding the matching
> existing string and this probably makes userdata less efficient than tables.
> Maybe short strings would help there as well.
the solution i'd like to see is something more like how Lua code does
it: string constants are interned at compile time and referenced by
but i think you'd end up with something like lua_ref(): runtime
computed indexes (instead of C constants), and at least one extra
is there a better way?