Restrict Org cache advice to Org 9.5.5 and earlier
Org 9.6.7 does not seem to have these performance issues anymore.
This commit is contained in:
parent
1d33039dde
commit
d0aa2bf33d
3
init.el
3
init.el
|
@ -963,6 +963,7 @@
|
|||
;; parsing all properties of an entry by default. Let’s simplify
|
||||
;; this to only parse what we are looking for. This makes tag
|
||||
;; search *much* faster!
|
||||
(when (version<= org-version "9.5.5")
|
||||
(with-eval-after-load 'org
|
||||
(define-advice org-cached-entry-get (:around
|
||||
(orig-fun pom property)
|
||||
|
@ -977,7 +978,7 @@
|
|||
;; Caching is not possible, check it directly.
|
||||
(org-entry-get pom property 'inherit)
|
||||
;; This is different in the original implementation
|
||||
(org-entry-get pom property))))
|
||||
(org-entry-get pom property)))))
|
||||
|
||||
;; Fix (Org 9.5.5): the variable `org-time-was-given' dynamically
|
||||
;; bound to signify when `org-read-date-analyze' has found a hh:mm
|
||||
|
|
Loading…
Reference in New Issue