Selon Guillaume Pothier <[EMAIL PROTECTED]>:

> >
> > Make sure the profiler runs a little bit longer. 20 seconds cumulative
> > or so. With 4.74 seconds there's a lot of statistical noise.
> >
>
> Done, now 23s.
> I updated the file at the same URL:
> http://www.dcc.uchile.cl/~gpothier/gprof.out

Looks like the following four (at metrics calculation time) are at fault:

2.95 lyx::TextMetrics::rowBreakPoint(int, int, lyx::Row&) const [18]
2.91 lyx::TextMetrics::setRowWidth(int, int, lyx::Row&) const [19]
2.94 lyx::InsetMathHull::metrics(lyx::MetricsInfo&, lyx::Dimension&) const [20]
1.07 lyx::TextMetrics::setHeightOfRow(int, lyx::Row&) [41]

The painting takes the rest:
6.19 lyx::paintText

splitted in:
1.84 paintPar(lyx::PainterInfo&, lyx::Text const&, int, int, int, bool)
1.40 RowPainter::paintFromPos(int&) <cycle 6> [33]
1.17 RowPainter::paintInset(int, lyx::Font const&)
0.78 RowPainter::paintText()

I cannot do much right now but will try to optimize when I am back.

Abdel.

Reply via email to