MarkdownEditing icon indicating copy to clipboard operation
MarkdownEditing copied to clipboard

Slow editing large md files

Open davahub opened this issue 3 years ago • 2 comments

I am getting lag when typing text and the document is about 5000 lines including many js code blocks.

Sublime Text Build: 4126 markdown: v3.2.2

davahub avatar Mar 22 '22 13:03 davahub

I can't say something about a future release, but syntax test file of current release has about 7800 lines and takes 60ms to be parsed and highlighted on my Windows PC. A 5000 lines hand crafted sample file with headings paragraphs and js code blocks parses in just 27ms. As ST only parses small chunks of visible text while typing I don't see any obvious reason for input lags.

Any sample file available to probably find some edge cases?

Any other plugins installed which might be involved?

Input lags often means GUI being blocked by synchronous functions. Maybe Main Menu > Tools > Developer > Profile Plugins... reveals some culprits?

deathaxe avatar Mar 22 '22 19:03 deathaxe

Related with https://github.com/sublimehq/sublime_text/issues/5504

deathaxe avatar Jul 17 '22 16:07 deathaxe

Resolved by ST 4136+

deathaxe avatar Sep 30 '22 20:09 deathaxe