Le 04/07/2024 à 16:42, Jürgen Spitzmüller a écrit :
I think the problem is that we call getAuthors() for one and the same
reference way too often by calling BibTeXInfo::getAuthorList() from
diverse places (which is at least in parts also my fault, see
BibTeXInfo::getValueForKey()).
Every time we do this, the vector is built from scratch, which is
expensive with that many authors and of course completely redundant.

I suppose caching this vector and only recreating it when necessary
will make the case in the bug report usable again (the long list causes
a noticeable delay, but it's bearable if done once IMHO), and it will
probably generally speed up document loading with many citations.

From what I understand, it exhausts the memory of the computer by allocating memory somewhere in the regex machinery (see the backtrace in the report). So the problem is not just about caching.

JMarc
--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to