-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Optimize Eq and Hash for Path/PathBuf #90596
Conversation
the8472
commented
Nov 5, 2021
•
edited
Loading
edited
(rust-highfive has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
7136b29
to
c3a8b34
Compare
@bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit c3a8b341d5d494891381ed81db3527b0362549c4 with merge eb2afd0294bbfeb7aa214aeacedd15e1c1351dad... |
☀️ Try build successful - checks-actions |
Queued eb2afd0294bbfeb7aa214aeacedd15e1c1351dad with parent d22dd65, future comparison URL. |
82f5e06
to
055116d
Compare
Finished benchmarking commit (eb2afd0294bbfeb7aa214aeacedd15e1c1351dad): comparison url. Summary: This change led to large relevant mixed results 🤷 in compiler performance.
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR led to changes in compiler perf. Next Steps: If you can justify the regressions found in this try perf run, please indicate this with @bors rollup=never |
Almost entirely improvements except for |
This seems like a reasonable set of performance numbers to me; it's paying compile time to get more runtime performance. |
055116d
to
1774548
Compare
This comment has been minimized.
This comment has been minimized.
20a29ea
to
4b9d735
Compare
4b9d735
to
13220f7
Compare
OK, this looks good to me. I think the commit history can be cleaned up a little -- 8 commits seems a little too many :) But otherwise r=me. |
⌛ Testing commit a6e0aa2 with merge 2ec3ee22b5808ab9a312c46fff596a7789f58752... |
This comment has been minimized.
This comment has been minimized.
💔 Test failed - checks-actions |
Apparently the drive prefixes are the only thing where we do case-insensitive comparison on paths. 😮💨 |
They are the only place that are guaranteed to be ASCII case-insensitive. Other parts of the path could be case-sensitive. |
…f trying to hash the raw bytes This should have 0 performance overhead on unix since Prefix is always None.
380cd85
to
c1ea7bd
Compare
@Mark-Simulacrum ready for another review, the latest commit should fix the windows failure. |
@bors r=Mark-Simulacrum rollup=never |
📌 Commit c1ea7bd has been approved by |
☀️ Test successful - checks-actions |
Finished benchmarking commit (c8e9497): comparison url. Summary: This change led to very large relevant mixed results 🤷 in compiler performance.
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. Next Steps: If you can justify the regressions found in this perf run, please indicate this with @rustbot label: +perf-regression |
Comparing the call graphs of perf profiles before and after this PR for tuple-stress shows a big difference in the callees of Before the PR:
After the PR:
In other words changes to hashing triggered probabilistic incremental verification (#90361) |