Yue Wang wrote:
also, mem consumption reported is a bit of a lie because lua seems to
allocates double of what it needed with each increment but not always use it
otf fonts are already quite packed in mkiv (i'm considering adding an option
to mtx-font to precache fonts but i'm not sure if it's
on my machine running mk with a fresh cache gives the same lua mem usage as
with filled cache, however a fresh run tops at 1 meg while a filled run tops
ar 500 (windows vista); that document uses several cjk fonts (relatively
large due to many glyphs) and script fonts (some arabic and zapfino
Yue Wang wrote:
And that's my experience. If I don't do that, the swap will be caching
for several minutes, and finally the kernel stopped the luatex program
since it uses too much memory.
Can you send me that input file and the fonts it needs (if they are not
freely available)?
Best wishes,
Hi Yue Wang,
Yue Wang wrote:
myfont = load_font('arial.ttf')
myfont = load_font('arial.ttf')
}
and I can see the memory usage may ebb and flow, but actually it is
leaking memory.
I also see a non-trivila leak (somewhere inside the fontforge library).
I will investigate further next week, it
ok, thanks for noticing, i added a
fontforge.close(pfbblob)
good
btw, when MKIV is running for the first time (i.e., no cache file). it
will use a lot of memory (parsing a 10M font will use 700-800 MB
hm so much?
Yes, when finish reading the following tex file without \bye using plain