Jean-Marc Lasgouttes wrote:
>>>>>> "Peter" == Peter Kümmel <[EMAIL PROTECTED]> writes:
>
> Peter> Maybe someone has an idea when looking at the Lyx functions (do
> Peter> we really need so much libintl_dcigettext calls?)
>
> Can you give us counts along with the timings?
>
> JMarc
>
>
Here a new measurement of the same build,
but it seems profiling is not very reproducible.
Sorted by time:
Name, Self visit time, Total function visits
-lyx-qt4.exe (SymPdb), 15.828941, 73824172
font_metrics::width, 1.134727, 4445434 (second scrolling, cash is full!)
LyXText::rowBreakPoint, 0.893593, 37687
std::_Tree<>::find, 0.794602, 5223557
libintl_dcigettext, 0.683546, 21400
QLFontInfo::width, 0.677149, 5223557
LyXText::singleWidth, 0.565250, 4204833
LyXText::getFont, 0.559904, 439022
Messages::Pimpl::get, 0.432108, 21813
`anonymous namespace'::RowPainter::paintChars, 0.404992, 157194
Buffer::buildMacros, 0.401799, 812
FontLoader::fontinfo, 0.383533, 4787011
Paragraph::isInset, 0.360589, 5838159
LyXText::leftMargin, 0.335186, 125164
LyXText::setRowWidth, 0.293549, 37687
font_metrics::fontencoding, 0.267848, 4440412
QLPainter::text, 0.257623, 116060
FontIterator::operator++, 0.254905, 3834718
`anonymous namespace'::RowPainter::paintText, 0.216347, 17289
`anonymous namespace'::RowPainter::paintFromPos, 0.194455, 163556
lyx::support::getEnv, 0.193426, 64200
Sorted by counts:
-lyx-qt4.exe (SymPdb), 15.828941, 73824172
Paragraph::isInset, 0.360589, 5838159
std::_Tree<>::find, 0.794602, 5223557
QLFontInfo::width, 0.677149, 5223557
FontLoader::fontinfo, 0.383533, 4787011
font_metrics::width, 1.134727, 4445434 (second scrolling, cash is full!)
font_metrics::fontencoding, 0.267848, 4440412
LyXText::singleWidth, 0.565250, 4204833
FontIterator::operator++, 0.254905, 3834718
Paragraph::isNewline, 0.134564, 1981978
Paragraph::isLineSeparator, 0.134414, 1947383
Paragraph::getDepth, 0.125091, 1788820
BufferView::buffer, 0.118021, 1691607
Bidi::vis2log, 0.084097, 1380392
Paragraph::Pimpl::lookupChange, 0.072109, 1176411
Paragraph::lookupChange, 0.157463, 1176411
Buffer::params, 0.067059, 1048384
std::_Lower_bound<>, 0.073032, 1031577
InsetList::insetIterator, 0.132813, 1031577
InsetList::get, 0.130300, 1031577
__security_check_cookie, 0.051339, 847082