On Tue, Sep 16, 2003 at 01:56:40PM +0200, Alfredo Braunstein wrote:
> John Levon wrote:
> 
> > Current-ish, maybe I need to update again ? I'll do so ...
> 
> No... it's only that it's is like this from about one month ago (textcache
> removal is *not* in yet).
>  
> > Then post some profiles of where time is spent
> 
> The problem that we have now is that rebreak caching is not as easy to do as
> when the LyXText holded the RowList. So we need new ideas for speeding
> rebreak up if it's needed...

Flat profile:

Each sample counts as 0.01 seconds.
 time       calls   ms/call  name    
 14.12       7900      0.06 LyXText::updateRowPositions()
 11.47   14792136      0.00 Paragraph::getChar(int) const
  8.53   14792136      0.00 Paragraph::Pimpl::getChar(int) const
  8.24    5309992      0.00 font_metrics::width(...
  5.88    3508086      0.00 LyXText::singleWidth(...
  5.00      32354      0.03 LyXText::rowBreakPoint(...

I promise an immediate gain of 15% by de-pimpling Paragraph::getChar
in a way that it can be inlined.

Andre'

-- 
Those who desire to give up Freedom in order to gain Security, will not have,
nor do they deserve, either one.     (T. Jefferson or B. Franklin or both...)

Reply via email to