>>>>> "Jean-Marc" == Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes:
Jean-Marc> The following patch modifies updateCounters to recompute Jean-Marc> the counters recursively for the whooe document everytime. Jean-Marc> As expected, this is _very_ expensive on a file like Jean-Marc> UserGuide. The profiler says that DocIterator::forwardPos Jean-Marc> is to blame. To be more precise, 96% of the time spent in updateCounters is due to ParIterator::operator++(int). Jean-Marc> To make this faster, I think DocIterator::forwardPar should Jean-Marc> take advantage of the inset list of paragraphs. This is the Jean-Marc> only way to avoid visiting all cursor positions... So each Jean-Marc> cursor slice should keep an up to date InsetList::iterator. Andre', Alfredo, do you know how to do this? JMarc