-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Perf regression in latest release (1.15.0) #2246
Comments
Fixed in 1.15.1. Thanks for the fast report. |
@stevenle How big are your html files? Would you be willing to share one that was showed the problem (for future testing)? |
@bitwiseman Appreciate the quick response. Re: testing, I'll need to isolate a test for you, but afaik it was affecting us on a few different websites both small and large. I'm traveling today but I can try to set up a quick stackblitz example for you next week. |
@stevenle No hurry, thanks again. |
@stevenle Could you please share one of the problematic HTML files? |
@Tortila90 I actually tried to create a stackblitz isolating the problem but wasn't able to re-create. Maybe there was a transitive dependency that fixed the problem, or maybe it was something else. After pinning js-beautify to an exact version we haven't had issues so I think we're good here on my end. If I encounter issues again I'll try to isolate the problem for you guys. |
@bitwiseman Are you aware of any other performance issues when angular is turned on by default? Maybe we should consider reverting these changes? |
Do you consider to add the angular option by default at one point since it's seems there is not any issues ? Or is it too touchy ? |
@simon-knu |
Description
Overnight, the latest release (
1.15.0
) seemed to have caused a performance regression. Our "htmlPretty" function went from finishing in a few ms to taking 20s to complete. We've pinned our dependency to the last known good version that worked for us (1.14.9
) to resolve the issue.Input
Expected Output
Expected to finish within X ms
Actual Output
The function is taking about 20s to complete, and the returned HTML is not pretty-printed.
The text was updated successfully, but these errors were encountered: