From 3ec2ed887483b802fe199ffc9fd8693de1bf272c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20H=C3=B6tzel?= Date: Tue, 29 Sep 2020 09:51:12 +0200 Subject: [PATCH] (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. --- org-roam-db.el | 1 + 1 file changed, 1 insertion(+) diff --git a/org-roam-db.el b/org-roam-db.el index 4a1e1b3..1f04814 100644 --- a/org-roam-db.el +++ b/org-roam-db.el @@ -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)