lua-users home
lua-l archive

Re: Can I save size by dumping a table of chunks? (and, how do I do it?)

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


> > The Lua compiler already optimizes all constants used in a function and
> > so only one copy of each string exists per function. However, different
> > functions, even if defined in the same chunk, do not share constants
> > (strings, in particular).
> 
> no? i thought each string was unique lua_State-wide
That is correct. I meant that for precompiled chunks created by luac.

AltStyle によって変換されたページ (->オリジナル) /