Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Very slow when parsing long strings of dashes inside code blocks #4

Closed
Nemo157 opened this issue Feb 22, 2015 · 4 comments
Closed

Very slow when parsing long strings of dashes inside code blocks #4

Nemo157 opened this issue Feb 22, 2015 · 4 comments

Comments

@Nemo157
Copy link

Nemo157 commented Feb 22, 2015

Pulled out of an example containing a multipart/form-data upload. As more dashes are added the rendering seems to take exponentially more time.

→ time node -e 'require("render-readme")("\`\`\`\n------------\n\`\`\`")'                                      
node -e   0.48s user 0.07s system 102% cpu 0.541 total
→ time node -e 'require("render-readme")("\`\`\`\n------------------------------\n\`\`\`")'
node -e   60.09s user 1.42s system 105% cpu 58.180 total
@Nemo157
Copy link
Author

Nemo157 commented Feb 22, 2015

Just tested against markdown-it to make sure it is related to render-readme specifically:

→ time node -e 'require("markdown-it")().render("\`\`\`\n------------------------------\n\`\`\`")'             
node -e   0.11s user 0.02s system 96% cpu 0.137 total

@rlidwka
Copy link
Owner

rlidwka commented Feb 27, 2015

Thanks for reporting it. This seems to be an issue in highlight.js, I opened a ticket here.

@rlidwka
Copy link
Owner

rlidwka commented Mar 30, 2015

This bug should be fixed now.

@rlidwka rlidwka closed this as completed Mar 30, 2015
@Nemo157
Copy link
Author

Nemo157 commented Mar 30, 2015

Awesome, thanks 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants