My .org file is almost 2MB large. How can I narrow down what headers/sub-headers take so much space?
See org-treeusage.el. It was added recently to the MELPA archive.
This library provides a minor mode for peeking at the line or character usage of each heading in an org-mode file with respect to the parent heading, allowing users with large org files to see the distribution of heading content and make informed decisions on where to prune, refile, or archive.
You can use the Python script org-du to produce line counts per section, using the same format as the
du command line tool. This can then be piped to
xdu for a graphical display.