Bug: TOC slow to open on large file

Paul Solt's Avatar

Paul Solt

01 Sep, 2020 02:26 PM

Toggling my sidebar TOC (Command + Shift + T) is slow with a 65,000 word file. It takes 2-3 seconds, see my video below to both show/hide the TOC.

TOC should be "cached" so it's a fast lookup, or you need to work backwards/forwards from my current scroll position and only display the last 20 elements, calculate the rest in a background thread and then update the UI with the full list.

Once it's cached, I don't see why it needs to be recalculated if I'm just hiding/showing the TOC.

From a "view" standpoint, it shouldn't be recalculating my scroll position, instead just show the content where I currently am. You shouldn't need to relayout everything if I'm at a specific scroll position, just work back or forwards relative my scroll position.


Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Already uploaded files

  • Slow_TOC_open_on_large_60000_word_file.png 367 KB

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac