On Sun, Jul 22, 2007 at 01:40:19PM +0200, [EMAIL PROTECTED] wrote:
> 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()

But that's on par with what we had even in 1.2.x. Note that even
completely removing those would speed up LyX by a 'mere' 20% or so.

Andre' 

Reply via email to