-
Notifications
You must be signed in to change notification settings - Fork 13k
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
compilation time hit from recent PR #54083
Comments
And here I was, all excited about the latest nll-dashboard results, which showed e.g. html5ever at at 1.01x ratio 😛 |
Woooooooooooooooooooooowwwwww!! |
I feel like I deserve some kind of badge for this ^_^
I'm pretty sure that the check for margins in every close delimiter is to blame. This could be moved to instead collect all the matching delimiter spans and check the left padding only in the case of mismatched braces. This should fix the performance regression for all cases, while keeping the behavior on bad code, at the expense of keeping a vec of all braces' opening and closing span (instead of only the "suspicious" ones). I will be in flight until tomorrow afternoon. If the performance regression needs to be fixed before then, please revert the PR, otherwise I'll make the appropriate change (assuming I'm correct). |
Don't compute padding of braces unless they are unmatched Follow up to #53949. Attempt to fix # #54083. r? @nikomatsakis
Don't compute padding of braces unless they are unmatched Follow up to #53949. Attempt to fix # #54083. r? @nikomatsakis
The corresponding PR has been merged. Should this be closed? |
perf.rust-lang.org looks like it's back to normal again. Thanks for fixing, @estebank! |
@michaelwoerister sorry to cause the epic slowdown to begin with :) |
@estebank No worries! |
Sadly, #53949 seems to have been very bad for compilation times. I think we have to back it out until we find a way to do it more efficiently. :(
cc @estebank
The text was updated successfully, but these errors were encountered: