gambier icon indicating copy to clipboard operation
gambier copied to clipboard

Perf: Stop editor parsing code from running multiple times

Open jcarpenter opened this issue 4 years ago • 0 comments

See markdown.js. It's run multiple times on load.

  • First the whole doc parses, and each line is run twice.
  • Then the whole doc parses again, and each line is run once.
  • Then the whole doc parses again, and each line is run once.

That's four parses, on loading the document.

Might have something to do with the mode overlays, and/or the mode switching?

jcarpenter avatar Sep 08 '20 19:09 jcarpenter