Function: org-element-cache-hash-show-statistics
org-element-cache-hash-show-statistics is an interactive and
byte-compiled function defined in org-element.el.gz.
Signature
(org-element-cache-hash-show-statistics)
Documentation
Display efficiency of O(1) query cache for org-element--cache-find.
This extra caching is based on the following paper:
Pugh [Information Processing Letters] (1990) Slow optimally balanced
search strategies vs. cached fast uniformly balanced search
strategies. http://dx.doi.org/10.1016/0020-0190(90)90130-P
Also, see org-element--cache-size.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/org/org-element.el.gz
;; FIXME: Remove after we establish that hashing is effective.
(defun org-element-cache-hash-show-statistics ()
"Display efficiency of O(1) query cache for `org-element--cache-find'.
This extra caching is based on the following paper:
Pugh [Information Processing Letters] (1990) Slow optimally balanced
search strategies vs. cached fast uniformly balanced search
strategies. http://dx.doi.org/10.1016/0020-0190(90)90130-P
Also, see `org-element--cache-size'."
(interactive)
(message "%.2f%% of cache searches hashed, %.2f%% non-hashable."
(* 100
(/ (float (car org-element--cache-hash-statistics))
(cdr org-element--cache-hash-statistics)))
(* 100
(/ (float org-element--cache-hash-nocache)
(cdr org-element--cache-hash-statistics)))))