lua-users home
lua-l archive

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


> 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