>>>>> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes:

Angus> The problem is that it's extremely expensive to generate
Angus> natbib-style labels because that requires the BibTeX database
Angus> to be parsed. I introduced a cache that should be updated only
Angus> when the BibTeX database is changed. Moreover, the generation
Angus> code should not be called until an attempt is made to draw the
Angus> label.

Indeed, the code is only parses the whole buffer once per label, but
the same is done again and again for each label.

The lazy way of fixing this is to improve DocIterator::forwardInset
like I did with forwardPos. I guess that would speedup previews too.

JMarc

Reply via email to