Michael E. Thomadakis wrote:
> I've noticed FF 3.0.1 (on solaris10 amd64) stalling at times, while I was 
> viewing mathml documents at http://pear.math.pitt.edu/mathzilla/ (look for 
> sample mathml documents there, eg., see 
> "http://pear.math.pitt.edu/mathzilla/Examples/markupOftheWeek.mhtml";). After 
> I did a
> 
> truss -fvall -p FFpid
> 
> I saw that it kept checking all of my font files every once a while. I do 
> have 2295 fonts installed (most from LaTex 'texlive' distribution) so that 
> was taking some time (1-3min). See bellow excerpt:
> 
> .....
> 20891/1: xstat(2, 
> "/usr/local/texlive/2007/texmf-dist/fonts/vf/cspsfonts-adobe/zapfchan", 
> 0x0803D280) = 0
> 20891/1: d=0x01980044 i=161341 m=0040755 l=2 u=0 g=0 sz=512
> 20891/1: at = Apr 22 13:16:02 CDT 2008 [ 1208888162 ]
> 20891/1: mt = Apr 17 13:06:03 CDT 2008 [ 1208455563 ]
> 20891/1: ct = Apr 17 13:06:03 CDT 2008 [ 1208455563 ]
> 20891/1: bsz=8192 blks=2 fs=ufs
> 20891/1: xstat(2, "/usr/local/texlive/2007/texmf-dist/fonts/vf/ibm/timesnew", 
> 0x0803D280) = 0
> 20891/1: d=0x01980044 i=161344 m=0040755 l=2 u=0 g=0 sz=1024
> 20891/1: at = Apr 22 13:16:02 CDT 2008 [ 1208888162 ]
> 20891/1: mt = Apr 17 13:06:03 CDT 2008 [ 1208455563 ]
> 20891/1: ct = Apr 17 13:06:03 CDT 2008 [ 1208455563 ]
> 20891/1: bsz=8192 blks=2 fs=ufs
> 20891/1: xstat(2, 
> "/usr/local/texlive/2007/texmf-dist/fonts/vf/monotype/helvetic", 0x0803D280) 
> = 0
> 20891/1: d=0x01980044 i=161368 m=0040755 l=2 u=0 g=0 sz=512
> 20891/1: at = Apr 22 13:16:02 CDT 2008 [ 1208888162 ]
> 20891/1: mt = Apr 17 13:06:03 CDT 2008 [ 1208455563 ]
> 20891/1: ct = Apr 17 13:06:03 CDT 2008 [ 1208455563 ]
> 20891/1: bsz=8192 blks=2 fs=ufs
> 20891/1: xstat(2, 
> "/usr/local/texlive/2007/texmf-dist/fonts/vf/monotype/timesnew", 0x0803D280) =
> .....
> 
> I believe that checking the same collection of font files is wasteful and it 
> should be only when really necessary. 

Have you run fc-cache to build a font cache so it doens't have to scan?
(Though you'd have to ask the Firefox guys why it rescans - normally
  lack of a fc-cache just makes programs scan once at startup, not
  repeatedly.)

-- 
        -Alan Coopersmith-           alan.coopersmith at sun.com
         Sun Microsystems, Inc. - X Window System Engineering


Reply via email to