You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Noticeable delay opening a markdown file (source) #8173
bugIssue identified by VS Code Team member as probable bugmarkdown-extThe Markdown extension: language features and previewverification-neededVerification of issue is requestedverifiedVerification succeeded
I am noticing a delay when I click on a markdown file until it opens. I think this is a regression from the new markdown extension but I am not sure what piece could cause it.
Holy moly - the parsing/loading the grammar is slow. Tho it only happens once/the first time. Martin Aeschlimann (@aeschli)alexandrudima ideas how to seep that up? Is it better to use JSON instead of PLIST?
Johannes Rieken (@jrieken)vscode-textmate is a node module and should in theory not use browser API. We can, as always make it injectable with a different plist parser.
To the verifier: please check that you can get the previous (slow) parser when setting the "hidden" preference editor.useExperimentalParser = false. I've added this to have a fallback in case my 10x faster parser has a bug, so we can switch back to the SAX based parser based on a setting. I will remove the setting after our confidence grows, by default the setting is on (use faster parser by default).
bugIssue identified by VS Code Team member as probable bugmarkdown-extThe Markdown extension: language features and previewverification-neededVerification of issue is requestedverifiedVerification succeeded
Activity
jrieken commentedon Jun 27, 2016
It's starting a process that encapsulated the rendering
jrieken commentedon Jun 27, 2016
A dupe of #7066
bpasero commentedon Jun 27, 2016
Johannes Rieken (@jrieken) I see this when opening the markdown file in source, not preview. I am aware of the delay when previewing.
[-]Noticeable delay opening a markdown file[/-][+]Noticeable delay opening a markdown file (source)[/+]jrieken commentedon Jun 27, 2016
hm... is the grammar we are using?
jrieken commentedon Jun 27, 2016
Holy moly - the parsing/loading the grammar is slow. Tho it only happens once/the first time. Martin Aeschlimann (@aeschli) alexandrudima ideas how to seep that up? Is it better to use JSON instead of PLIST?
CPU-20160627T140746.cpuprofile.zip
alexdima commentedon Jun 28, 2016
This sounds like an opportunity for a great new
plist-to-jsonnode module that is streamlined to only handle plist. I'd love to write that :)jrieken commentedon Jun 29, 2016
Maybe we can use the native
DOMParserfor this (https://developer.mozilla.org/en-US/docs/Web/API/DOMParser)alexdima commentedon Jun 29, 2016
Johannes Rieken (@jrieken)
vscode-textmateis a node module and should in theory not use browser API. We can, as always make it injectable with a different plist parser.alexdima commentedon Jun 30, 2016
I am on the path of writing a plist parser.
before:

after:

jrieken commentedon Jun 30, 2016
Tho, I'd still like to see how it compares to the
DOMParser;-)alexdima commentedon Jun 30, 2016
before.CPU-20160630T185643.zip
after.CPU-20160630T185657.zip
before:

after:

alexdima commentedon Jun 30, 2016
To the verifier: please check that you can get the previous (slow) parser when setting the "hidden" preference
editor.useExperimentalParser = false. I've added this to have a fallback in case my 10x faster parser has a bug, so we can switch back to the SAX based parser based on a setting. I will remove the setting after our confidence grows, by default the setting is on (use faster parser by default).bpasero commentedon Jul 1, 2016
Works great in terms of performance 👍
Fixes microsoft#8173: Adopt vscode-textmate with fast plist parser, m…