Skip to content

Noticeable delay opening a markdown file (source) #8173

Closed

Description

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.

//cc Johannes Rieken (@jrieken) if you have clues

Activity

  1. added
    bug
    markdown-ext
    on Jun 27, 2016
  2. jrieken commented on Jun 27, 2016

    @jrieken
    Contributor

    It's starting a process that encapsulated the rendering

  3. jrieken commented on Jun 27, 2016

    @jrieken
    Contributor

    A dupe of #7066

  4. bpasero commented on Jun 27, 2016

    @bpasero
    ContributorAuthor

    Johannes Rieken (@jrieken) I see this when opening the markdown file in source, not preview. I am aware of the delay when previewing.

  5. changed the title [-]Noticeable delay opening a markdown file[/-] [+]Noticeable delay opening a markdown file (source)[/+] on Jun 27, 2016
  6. jrieken commented on Jun 27, 2016

    @jrieken
    Contributor

    hm... is the grammar we are using?

  7. jrieken commented on Jun 27, 2016

    @jrieken
    Contributor

    screen shot 2016-06-27 at 14 06 47

    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

  8. alexdima commented on Jun 28, 2016

    @alexdima
    Member

    This sounds like an opportunity for a great new plist-to-json node module that is streamlined to only handle plist. I'd love to write that :)

  9. alexdima commented on Jun 29, 2016

    @alexdima
    Member

    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.

  10. alexdima commented on Jun 30, 2016

    @alexdima
    Member

    I am on the path of writing a plist parser.

    before:
    image

    after:
    image

  11. jrieken commented on Jun 30, 2016

    @jrieken
    Contributor

    Tho, I'd still like to see how it compares to the DOMParser ;-)

  12. alexdima commented on Jun 30, 2016

    @alexdima
    Member
  13. alexdima commented on Jun 30, 2016

    @alexdima
    Member

    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).

  14. added
    verification-needed
    on Jul 1, 2016
  15. bpasero commented on Jul 1, 2016

    @bpasero
    ContributorAuthor

    Works great in terms of performance 👍

  16. locked and limited conversation to collaborators on Nov 18, 2017
  17. added a commit that references this issue on Sep 6, 2026
    72571b1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugmarkdown-extverification-neededverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions