>>>>> "John" == John Levon <[EMAIL PROTECTED]> writes:
John> I have abjectly failed. Everything I tried increased resize John> time. John> xforms is averaging 1.5 seconds for first-time-resize. Qt is John> averaging 5.5. I can not bring this down. John> 4.5 seconds of this is time as a result of John> qfont_metrics::width() (checked using an empty ::width() John> function). John> Basically, our hands our tied by text.C's massive overuse of the John> metrics. John> This will have to stay, basically. Sorry. A few ideas (in case you have not tried them already): If the functions is called several times in a row with same info (same font, maybe even same string!) you could cache data. Instead of building a QString, you could call yourself width(QChar) on each character, unless there is some kerning going on. Do you know whether a lot of calls are for a single character? In this case it would be worth specializing this case. 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? JMarc