Enrico Forestieri wrote:
On Sat, Oct 14, 2006 at 05:56:24PM +0200, Abdelrazak Younes wrote:Jean-Marc Lasgouttes wrote:I am guessing that this has to do with the scrolling code in BufferView. I know this is difficult to do right but this thing is slowing scrolling enormously especially when there is math. I think I would prefer a bad scrollbar position and good performance."kmailuk" == kmailuk <[EMAIL PROTECTED]> writes:kmailuk> Hey! With "instant preview" turned ON there is a noticeable kmailuk> performance improvement (i.e. speed is not a problem any kmailuk> more). Why would that make things run faster? (I prefer the kmailuk> way LyX looked with instant preview off but I can't kmailuk> complain). It seems that math equation display is really slow for some reason, but I cannot guess why.I heartily second this.
But in this case, it's not only that. The attachment in the bugzilla entry is still slow when I disable the scrollbar update in bufferview with the attached patch. So this is more complicated than a simple scrollbar issue as I initially thought.
Asger, if you have already finished with my task list you could ask Andre how we could optimize the editing of the attached document.
Abdel.
Index: BufferView.C =================================================================== --- BufferView.C (revision 15324) +++ BufferView.C (working copy) @@ -394,6 +394,9 @@ return; } + scrollbarParameters_.reset(); + return; + LyXText & t = buffer_->text(); int const parsize = int(t.paragraphs().size() - 1); if (anchor_ref_ > parsize) {
attachment.lyx
Description: application/lyx