On 13-Dec-2001 Jean-Marc Lasgouttes wrote:

> I did some profiling (I did a lot of document switches to give it a
> higher weight than the initial loading phase) and a lot of time is
> spent in Buffer::resizeInsets. I notice too that this method is called
> unconditionally in BufferView::Pimpl::resizeCurrentBuffer. And then I
> ran out of competence, and stopped here.
> 
> Does it make sense.

Well maybe. In pre-InsetText times a resize was not so heavy as it only
had to rebreak the actual LyXText! Now if you use a lot of insets it is
MUCH heavier. We surely can do some profiling here and make a resize a
bit faster, but we surely should maybe with the LyXText save also it's
width and then on reputting it on screen check this with the actual width
and do a resize only if really needed!

             Jug

--
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._
Dr. Jürgen Vigna        E-Mail:  [EMAIL PROTECTED]
Italienallee 13/N       Tel/Fax: +39-0471-450260 / +39-0471-450253
I-39100 Bozen           Web:     http://www.sad.it/~jug
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._

Excellent day for drinking heavily.  Spike the office water cooler.

Reply via email to