On Mon, Apr 03, 2006 at 04:09:44PM +0200, Abdelrazak Younes wrote: > IMHO even if there's no performance penalty on linux (which I really > doubt on slow machine) the way the counters are updated is too heavy. We > should instead maintains lists of interdependent numbered paragraphs and > update only those paragraphs that need updates. In this context, a kind > of DocIterator that will iterates other one of these lists would be > really useful.
Interesting idea. Thinking further, this 'lists of interdependent numbered paragraph' is basically a tree (or rather, a 'forest'), and one does not even need to change any paragraph in 'updateCounters', the couter value could be extracted on-the-fly at metrics() time from this tree. This would be almost a no-cost solution. Andre'