* typescript and memory usage
@ 2008-05-01 18:59 Antoine Junod
2008-05-02 6:58 ` Hans Hagen
0 siblings, 1 reply; 2+ messages in thread
From: Antoine Junod @ 2008-05-01 18:59 UTC (permalink / raw)
To: ntg-context
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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: typescript and memory usage
2008-05-01 18:59 typescript and memory usage Antoine Junod
@ 2008-05-02 6:58 ` Hans Hagen
0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2008-05-02 6:58 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-05-02 6:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-01 18:59 typescript and memory usage Antoine Junod
2008-05-02 6:58 ` Hans Hagen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).