Repository navigation
perf(nm): avoid redundant package map sorting - #7223
Merged
Merged
Conversation
3 tasks done
theKashey
force-pushed
the
speed-package-maps
branch
2 times, most recently
from
July 15, 2026 06:26
a241d7d to
72a74e9
Compare
larixer
force-pushed
the
speed-package-maps
branch
from
July 17, 2026 07:17
72a74e9 to
37aad91
Compare
|
@larixer could we do a release with this fix? This regression is having a 15s regression impact across our CI jobs |
Member
|
I'll make a release this weekend. |
|
@arcanis thank you so much! |
|
@arcanis just following up - is there anything we can do to help get a release out? |
|
4.18.0 was just released with a fix - thank you! |
1 of 7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What's the problem this PR addresses?
Our tools detected a significant perf regression after updating from 4.13 to 4.17 and I was able to narrow down the impact to #7184
This change removes likely redundant sorting operation, speeding up (in my case) linking step by 97%, from 50s to 2s
How did you fix it?
First I've tried to cache sorting operation, but later challenged its very existence. Tests and snapshots are happy and see no difference.
...
Checklist
I have read the Contributing Guide.
I have set the packages that need to be released for my changes to be effective.
I will check that all automated PR checks pass before the PR gets reviewed.