Fletcher on 04 Mar, 2022 05:29 PM
Going back through open issues that didn't have a solution or was still
The delay when toggling the TOC is related to adjusting the text editor
view, not loading the TOC data. If you put the insertion point at the
top of the document and toggle, it's fast. If you are at the bottom,
it's slow. This is part of macOS, and to my knowledge there is not much
I can do about it.
The TOC data is cached, but when the TOC is hidden there is no reason to
update the data (e.g if someone never uses the TOC, they shouldn't take
the performance hit of updating it with every keystroke.) So when you
toggle the TOC on, it needs to be updated. But this delay comes after
the TOC appears (if your insertion point is at the top).
You can demonstrate this by cutting all text, then collapsing the TOC.
Paste the text back in, move insertion to top, and then expand TOC.
You'll see a slight delay before the TOC contents are loaded, but the
panel expands quickly.
Replacing the data in MMDC v4 is a bit slow, but again not the primary
issue here. Regardless, MMDC v5 uses a different approach that is much
faster overall, but it doesn't change the text layout issue that is the
If you're interested in the "almost-beta" of v5, you can download here: