On 10/16/2017 02:04 AM, Jürgen Spitzmüller wrote: > Am Sonntag, den 15.10.2017, 18:41 -0400 schrieb Richard Heck: >> No, it comes whenever a document contains a BibTeX inset. A better >> patch >> would make it happen >> only when a BibTeX inset was involved. Then the delay is no surprise: >> Of >> course we have to reread >> the files. > The attached patch does not address this very bug, but I have noted > that we unnecessarily read bibtex files multiple time (e.g. with > multiple bibtex insets in master/child constellations or with > subdivided bibliographies/chapterbib). > > The attached patch assures each file is only parsed once within a > single collectBibkey() process. It will slightly speed up the process > in some circumstances. > > Is it worth it?
Without profiling, it would be hard to know for sure, but I'd guess it was worth it. Certainly re-reading huge files over a high-latency connection could slow things down. Richard