2.4.1
Jürgen Spitzmüller
jspitzm at gmail.com
Thu Jul 4 14:42:56 UTC 2024
Am Mittwoch, dem 03.07.2024 um 19:02 -0400 schrieb Richard Kimberly
Heck:
> > Could you take a look at it now? I do not understand at all this
> > bibio.cpp stuff to fetch author names. I guess we should just limit
> > the number of authors that we parse.
>
> Will do. We had another bug like this when some physicist was
> referencing a paper with 3000 authors or something.
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.
--
Jürgen
More information about the lyx-devel
mailing list