2.4.1
Jean-Marc Lasgouttes
lasgouttes at lyx.org
Thu Jul 4 15:12:00 UTC 2024
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
More information about the lyx-devel
mailing list