Re: Start speedup

From: Sir Basic <phoenix_at_freemail.hu>
Date: Fri Oct 22 2004 - 13:50:54 CEST

Hi!

I've discovered some points in "buildFont" function that can
be bugs. The [-1] element of "fontFile" could be accessed in
some cases. If the extension is ".font" then the postfix
change seems improper. Please check the attached file for
modifications.

Meanwhile I've profiled the startup several times. It seems
the overall running time of "buildFont" is not as long as
I've thought before (something like 6%, proportional to the
number of fonts installed). But please note that the
function spends one half of its time with those string
operations. The nice-looking rows
        metricFile.ucs4_str()[ffs - 3] = 'a';
        metricFile.ucs4_str()[ffs - 2] = 'f';
        metricFile.ucs4_str()[ffs - 1] = 'm';
cost 37% of execution time of the whole function because of
the repeated call on "ucs4_str()".

  Attila

Received on Fri Oct 22 13:54:21 2004

This archive was generated by hypermail 2.1.8 : Fri Oct 22 2004 - 13:54:21 CEST