(perf)db: prefer org-entry-get over org-entry-properties (#1946)

Since we're only looking for a specific property, org-entry-get is much
faster. This should speed up link indexing significantly.
master
Jethro Kuan 4 years ago committed by GitHub
parent 4d71fbdfe1
commit 3177b900e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      org-roam-db.el

@ -316,7 +316,7 @@ If UPDATE-P is non-nil, first remove the file in the database."
(defun org-roam-db-node-p ()
"Return t if headline at point is an Org-roam node, else return nil."
(and (org-id-get)
(not (cdr (assoc "ROAM_EXCLUDE" (org-entry-properties))))
(not (org-entry-get (point) "ROAM_EXCLUDE"))
(funcall org-roam-db-node-include-function)))
(defun org-roam-db-map-nodes (fns)

Loading…
Cancel
Save