Coder Social home page Coder Social logo

Comments (5)

vsch avatar vsch commented on June 4, 2024

The pegdown parser is iterative and can take too long trying to process markdown. This will happen on large blocks of text with unmatched inline markdown markers. The known suspects for this is the Quotes extension. If you have it enabled, try disabling it and see if the document will parse. I am even considering removing it as an option because of its tendency to timeout.

If the document that causes this is not proprietary, can you make it available to me for testing? I have been wanting to see if I can modify the pegdown parser so that it is faster in giving up trying to parse something that it cannot.

from idea-multimarkdown.

bbrala avatar bbrala commented on June 4, 2024

I've uploaded all MD files in the project that failed to wetransfer. It pretty much node and php stuff. But only libraries of others.

http://we.tl/ouqXSJPkDY

from idea-multimarkdown.

vsch avatar vsch commented on June 4, 2024

Thanks. I am looking into it now.

from idea-multimarkdown.

bbrala avatar bbrala commented on June 4, 2024

I've didn't have it later tho, so be carefull, maybe it was related to the .11 bug with the timing or something?

from idea-multimarkdown.

vsch avatar vsch commented on June 4, 2024

I hope you don't have all these directories marked as Sources Root. There are over 3800 markdown files there.

If the file is in a source root (not library source root) then the plugin will consider the file for link resolution annotations and completions. It will be slow to search through the list to pick out candidate files from very large lists. Unless you are making links to these files or actively working on them then there is no need to have them as source. Any file can be viewed, regardless of its source status.

I tried both enabling the directory as source root with all 3826 markdown files and it took a while for the idea to index everything and response time was the pits but nothing died. When I unmarked the directory as a source root everything looked good.

I suspect that it was a version 1.1.11 issue. There were a few things off in the indexing, since it was an early implementation. I still have to optimize handling of large file sets. I am not cacheing enough and clearing the cache unnecessarily but in the early stages of parser development I want to avoid stale cache issues more than slow performance.

Thank you for this mega load of markdown files. I'll use them for optimization testing. 👍

from idea-multimarkdown.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.