CommonMark/Markdown Java parser with source level AST. CommonMark 0.28, emulation of: pegdown, kramdown, markdown.pl, MultiMarkdown. With HTML to MD, MD to PDF, MD to DOCX conversion modules.
BSD 2-Clause "Simplified" License
2.26k
stars
269
forks
source link
The actual flexmark parser is slower than the parser from version 0.50.50 #538
In my project I generate the DOCX documents with the content coming from the long markdown files. With the actual flexmark (i.e. 0.64.0) the parser needs ~40-45 seconds to parse the content from the markdown file. But with flexmark 0.50.50 it takes around ~10-15 seconds. This means that the old version works 3 times faster than the actual version.
In my project I generate the DOCX documents with the content coming from the long markdown files. With the actual flexmark (i.e. 0.64.0) the parser needs ~40-45 seconds to parse the content from the markdown file. But with flexmark 0.50.50 it takes around ~10-15 seconds. This means that the old version works 3 times faster than the actual version.
Parser
To Reproduce
The md-flexmark.md can be used with following snippet:
Time analysis With the Visual VM it was possible to get more information about the place in code that takes a long time:
Expected behavior: The parser works with the same speed as it did before (i.e. 0.50.50).