Andre Poenitz wrote:
On Wed, Jun 14, 2006 at 11:11:59AM +0200, Peter Kümmel wrote:
here it is an place 4

  -lyx-qt4.exe (SymPdb), 15.828941, 73824172
     font_metrics::width, 1.134727, 4445434 (second scrolling, cache is full!)
     LyXText::rowBreakPoint, 0.893593, 37687
     std::_Tree<>::find, 0.794602, 5223557
     libintl_dcigettext, 0.683546, 21400

But I don't understand why font_metrics::width needs so
much time. It was the scrolling back so that the cache
is already full.

That's been the bottleneck in LyX since as long as I can remember.

I still think we can reduce the number of width() calls by some
refactoring there but I won't do it myself.

Having read a bit about the code that uses width(), I agree with you. But I won't do it either ;-)

Abdel.

Reply via email to