Ihor Radchenko <yanta...@posteo.net> writes: > I would like to assess the efficiency of one of search optimizations used > in org-element.el [1]
Thanks everyone for responding! It looks like the optimization is useful at least to some people (20% cached searches is a good thing to have). A number of people also reported significant fraction of cache queries associated with editing (non-hashable). They cannot, unfortunately, be handled by this particular optimization and I have to leave them as is. I am thus leaving the code in place, removing the statistics gathering parts. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=2bc510217 Done. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>