lua-users home
lua-l archive

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


On Jun 18, 2014, at 9:26 AM, Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> wrote:

>> That looks like one very interesting (6 MB!) Lua script... I imagine the constant table must be absolutely huge!
> 
> Not really: 127261 constants. And that map had all text expanded as
> paths... (But glyphs are reused, not repeated.)

Ah yes, the reuse of glyphs would definitely keep the constant count down. I looked at the lines you quoted from the script and realised it is using transforms, which is a nice optimisation! 

~pmd