michal-h21 / luatex-harfbuzz-shaper

Experimental text shaping in LuaTeX using Harfbuzz library
10 stars 0 forks source link

Decrease memory consumption #14

Open michal-h21 opened 8 years ago

michal-h21 commented 8 years ago

I've tried to compile "The Not so short Introduction to LaTeX" and it failed because of a huge memory consumption (around 2500 MB, my computer practically froze at that point). It seems that many font instances were loaded, so maybe it was the cause of this leak? Other possible cause could be leaking of nodes in shaping callback. For each shaped node list, a new one is created, but the old one can't be removed.