Closed MichielCottaar closed 3 years ago
Hi! Thanks a lot for the report! I was always wondering why parsing my master bib file with bibtex-completion
was so slow when the raw parsing with parse-bib
takes a fraction of a second.
On the ORB's side I can try to optimize the orb-find-note-file
function so that it makes a cache and queries it instead of the database.
On your side you can remove unused functions from bibtex-completion-find-note-functions
to further speed up things. I could do it in ORB too, but that's not very transparent with respect to the user.
While parsing the bibliography (bibtex-completion-parse-bibliography) bibtex-completion queries for each entry whether it has a note file (in bibtex-completion-prepare-entry). This leads to orb-find-note-file to be called for each entry in the bibtex file, which can be very slow for large bibtex files due to the database queries in orb-find-note-file.
I managed to fix this in my setup by skipping the note lookup in bibtex-completion-prepare-entry: