On Fri, Dec 06, 2002 at 10:17:47AM +0100, Jean-Marc Lasgouttes wrote: > If the functions is called several times in a row with same info (same font, > maybe even same string!) you could cache data.
Well I considered that but am unable to come up with a really sane scheme ... > Instead of building a QString, you could call yourself width(QChar) on > each character, unless there is some kerning going on. About 5-6% slower than current. > Do you know whether a lot of calls are for a single character? In this > case it would be worth specializing this case. about 10-15% slower than current. > I'm sure you thought about that already, but it never hurts to > propose. What do you think is hurting qt more than xforms? The unicode > conversion? No, it was dog slow before Dekel added that. regards john -- "Yeah, I woke up in the day accidentally once, the moon was on fire for some reason and I couldn't see very well and all the bandwidth disappeared, it was very scary :(" - Orion