typescript and memory usage
Hello list, Thanks to Hans, Hraban, Wolfgang and Aditya, I've successfully played with typescripts and Garamond PP as provided by Adobe with luatex. But I still have a little question :) By reducing my typescript to the strict minimum, as below, I'm still using 232 Mo (sic) of ram. My document test only contains nothing but a \switchtobodyfont but it takes 8.7 seconds to compile on a 4000 bogomips machine (athlon 2400+). For the C lover I am, that seems, errh, HUUUUUGE. Is it normal? Note that if I remove the [features=default] argument, mem is divided by 2, and time by 3. Also note that if I use more faces, it can go to 2Go of ram and 2 minutes of computing. Thanks for your reply, -AJ %% typescript \starttypescript[serif][garamondpp] \definefontsynonym [GaramondPP-Roman][file:GaramondPremrPro] \stoptypescript \starttypescript[serif][garamondpp][name] \definefontsynonym [Serif][GaramondPP-Roman] \stoptypescript \starttypescript [GaramondPP] \definetypeface [GaramondPP][rm][serif][garamondpp][default] \stoptypescript %% minimal doc \usetypescriptfile[type-garamondpp] \usetypescript[GaramondPP] \starttext \setupbodyfont[GaramondPP] \stoptext
Antoine Junod wrote:
Hello list,
Thanks to Hans, Hraban, Wolfgang and Aditya, I've successfully played with typescripts and Garamond PP as provided by Adobe with luatex.
But I still have a little question :) By reducing my typescript to the strict minimum, as below, I'm still using 232 Mo (sic) of ram. My document test only contains nothing but a \switchtobodyfont but it takes 8.7 seconds to compile on a 4000 bogomips machine (athlon 2400+).
For the C lover I am, that seems, errh, HUUUUUGE.
on larger docs (say 200 pages) we get 10 pages/sec
Is it normal?
yes, lua allocates chunks in growing sizes and font tables are large; the number is not always reflecting the actual usage
Note that if I remove the [features=default] argument, mem is divided by 2, and time by 3. Also note that if I use more faces, it can go to 2Go of ram and 2 minutes of computing.
hm, the mk test document never tops that much (i think 400 M at most when chinese, arab and zapfino are loaded maybe there's something wrong with garbage collection on youe machine Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Antoine Junod
-
Hans Hagen