(perf): disable org-agenda while building the cache (#1147)

`org-mode` builds the org-agenda-files menu entry for every file
visited. This functionality isn't required and useful when building
the cache in temporary org buffers.
This commit is contained in:
Jürgen Hötzel
2020-09-29 09:51:12 +02:00
committed by GitHub
parent be64f107e9
commit 3ec2ed8874

View File

@ -477,6 +477,7 @@ If FORCE, force a rebuild of the cache from scratch."
(org-roam-db--close) ;; Force a reconnect
(org-roam-db) ;; To initialize the database, no-op if already initialized
(let* ((gc-cons-threshold org-roam-db-gc-threshold)
(org-agenda-files nil)
(org-roam-files (org-roam--list-all-files))
(current-files (org-roam-db--get-current-files))
(file-count 0)