[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#750785: Slowness with context and xetex



Hi Khaled,

concerning the slowness in xelatex and context/xetex, I found now
which call is so delaying. I interspersed lots of printf and found that
most time the xelatex process is stucked in the following line
from XeTeXLayoutInterface.cpp:
	shape_plan = hb_shape_plan_create_cached(hbFace, &segment_props, engine->features, engine->nFeatures, engine->ShaperList);

Does this tell you *anything*? In Debian we are running with harfbuzz
0.9.33 at the moment, and I also checked the sources, there is only
one completely unrelated patch that Debian adds.

The whole output is mostly stucked in function layoutChars, where the
above call happens.

Do you have any idea where the slowness could come from? It seems -
only from reading the name of the function - that maybe something
is not proberly cached?

On Wed, 02 Jul 2014, Khaled Hosny wrote:
> I don't really know, my Ubuntu install only have 2013 packages so I can
> not do much testing myself, but I'd really be surprised if such slowness
> was related to HarfBuzz (unless something really wrong is going on). My
> first guess would be FontConfig, if XeTeX is asked for a font that it
> can not find it might cause FontConfig regenerate its font database
> which can be slow, but then again this should happen once for the whole
> document which is not the case here.


All the best

Norbert

------------------------------------------------------------------------
PREINING, Norbert                               http://www.preining.info
JAIST, Japan                                 TeX Live & Debian Developer
GPG: 0x860CDC13   fp: F7D8 A928 26E3 16A1 9FA0  ACF0 6CAC A448 860C DC13
------------------------------------------------------------------------


Reply to: