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

Performance issues when including Autolinker #760

Closed
chr22 opened this issue Sep 7, 2015 · 4 comments
Closed

Performance issues when including Autolinker #760

chr22 opened this issue Sep 7, 2015 · 4 comments

Comments

@chr22
Copy link

chr22 commented Sep 7, 2015

Evaluation of Prism.js is super slow when Autolinker is included. The following two images are showing the difference in evaluation time when Autolinker respectively is included and not included.

Both images are of a page that only includes Prism and but aren't using it.

slow

fast

This is the evaluation time is on a very fast desktop CPU. My Nexus 4 smartphone takes about 25 sec. for the same task.
This means that a page load takes 25 sec longer on my smartphone when Prism is included on the page, even though it isn't used.

@Golmote
Copy link
Contributor

Golmote commented Sep 7, 2015

Thanks for reporting. Can you tell me which components (i.e. languages) are loaded?

@chr22
Copy link
Author

chr22 commented Sep 7, 2015

These languages:

Prism download page

@Golmote Golmote closed this as completed in a572495 Sep 7, 2015
@Golmote
Copy link
Contributor

Golmote commented Sep 7, 2015

Thanks! It should be much better now. Please redownload with the link you provided and give it a try. If the problem persists, feel free to reopen!

@chr22
Copy link
Author

chr22 commented Sep 7, 2015

Thanks. The problem is fixed.

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