Revision 794854

Go back to digest for 13th April 2008

Optimization in Development Tools

Josef Weidendorfer committed changes in /trunk/KDE/kdesdk/kcachegrind/kcachegrind/treemap.cpp:

Optimization: For line-breaking long symbols use binary search

This optimizes the line break algorithm for text labels in the RectDrawing class (method drawField) by reducing the number of calls to QFontMetrics::width(), which is a lot slower in Qt4 than in Qt3. RectDrawing is used for the drawing of rectangles in treemaps and graph nodes.

File Changes

Modified 1 files
  • /trunk/KDE/kdesdk/kcachegrind/kcachegrind/treemap.cpp
1 files changed in total