>>>>> "John" == John Levon <[EMAIL PROTECTED]> writes:
John> Load extended.lyx and find the first Itemize list, then increase John> the depth of one of the items. Dead slow. Has to be fixed I John> think I did some profiling with gprof. The culprit seems to be: [43] 12.9 0.00 0.30 42 bv_funcs::changeDepth(BufferView *, LyXText *, bv_funcs::DEPTH_CHANGE, bool) [43] 0.00 0.30 6/6 BufferView::Pimpl::update(Buffer View::UpdateCodes) [44] 0.00 0.00 3/42 LyXText::changeDepth(bv_funcs::D EPTH_CHANGE, bool) [210] 0.00 0.00 42/152 BufferView::Pimpl::available(voi d) const [1249] 0.00 0.00 42/144 BufferView::available(void) cons t [1262] 0.00 0.00 6/6 BufferView::update(BufferView::U pdateCodes) [1583] 0.00 0.00 3/45075 LyXText::bv(void) [938] Actually, I did only 3 depth change, and the 39 remaining calls to the function come from getStatus (these are not a problem, I think). However, each of the remaining 3 calls call BufferView::Pimpl::update() twice, and this is expensive. Is there a reason why it is so? JMarc