[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.3.1 (rc1) now available
- From: Roberto Ierusalimschy <roberto@...>
- Date: Wed, 3 Jun 2015 12:07:21 -0300
> On Wed, Jun 3, 2015 at 8:55 AM, Roberto Ierusalimschy
> <roberto@inf.puc-rio.br> wrote:
> > - cache for 'lua_pushstring'
>
> does this mean that now we can use small constant strings from C as
> freely as from Lua?
The cache gives a good improvement, but it is not "as freely" as in Lua.
> repeatedly interning strings like "ready", "cancel", or so can be a
> significant overhead; but from Lua all these are already interned. in
> some cases, i've resorted to put those string in the registry, so i
> can use lua_rawgeti() to get the string instead of simply pushing it.
Yes, we hope the cache can improve this.
-- Roberto