"Dwarshuis, Nathan J" writes: > I noticed that calling `org-element-interpret-data' on objects is > generally 5-10x faster than when calling on elements. The reason seems > to be that `org-element--interpret-affiliated-keywords' (which is only > called on elements) does alot of unnecessary work. Namely, it runs on > all elements (including those that should never have an affiliated > keyword) > > The attached patch addresses this. Thanks! I am attaching some extra suggestions on top of the patch. > ... and also loops over :standard-properties which should not be > relevant here. There is nothing stopping us from adding some affiliated keywords to standard properties in future. What happens if you drop this optimization? Does the benchmark still show an improvement?