Peter Kümmel wrote: > I don't think the event handling counts, because it shows > the uptime time of lyx, even when nothing is painted.
This makes more sense (I've disabled all std::* calls): Name, Self visit time QRasterPaintEngine::drawTextItem, 5.622828 qBlue, 5.467107 QLFontInfo::width, 4.111963 InsetList::insetIterator, 3.755528 QRasterBuffer::resetBuffer, 2.911848 ExtTextOutW, 1.485099 -> THIS is the Windows text painting function comp_func_solid_Source, 0.763000 Paragraph::getChar, 0.617311 Here the time which is spend in the different dlls/exe: QtGuid4.dll , 31.600339 lyx-qt4.exe , 21.862434 QtCored4.dll, 3.386272 GDI32.dll , 2.411191 This means when you code lyx in plain C by only using the GDI functions directly you could get a boost of factor 14 = (31.6+2.4)/2.4 - the upper limit for Trolltech's Qt/win32 optimizations. :) (You could also say Qt's overhead) When