Remove CacheCell and CacheRefCell aliases and directly use Lock and RwLock - #162418
Conversation
|
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
[BENCH] remove `CacheCell` and `CacheRefCell` aliases and directly use `Lock` and `RwLock`
|
Even if there are minor regressions, we can merge this once the concerns about locking in macro scope compression (#158845 (comment)) are resolved. |
This comment has been minimized.
This comment has been minimized.
|
Finished benchmarking commit (798fc4c): comparison URL. Overall result: ❌✅ regressions and improvements - please read:Benchmarking means the PR may be perf-sensitive. It's automatically marked not fit for rolling up. Overriding is possible but disadvised: it risks changing compiler perf. Next, please: If you can, justify the regressions found in this try perf run in writing along with @bors rollup=never rustc-perf Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)Results (primary 2.0%, secondary 0.5%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (primary 0.6%, secondary 5.6%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeThis perf run didn't have relevant results for this metric. Bootstrap: 478.991s -> 480.615s (0.34%) |
|
(The tokio benchmark was added today and might be a bit noisy at the start) |
|
@rustbot ready |
|
Still need to address the scope chain compression problem #158845 (comment). |
|
Reminder, once the PR becomes ready for a review, use |
|
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
… and `RwLock` instead in places that need synchronization
d1ff585 to
ba21a6e
Compare
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
Can't r=you, @rustbot ready. |
|
@bors r+ |
|
Scheduling: Let's run this before a small rollup. @bors p=5 |
…nkov Remove `CacheCell` and `CacheRefCell` aliases and directly use `Lock` and `RwLock` Some changes from #158845 for benchmarking. decided to change Mutex to `datastructures::sync::Lock`. r? @petrochenkov
This comment has been minimized.
This comment has been minimized.
|
The job Click to see the possible cause of the failure (guessed by this bot)Important For more information how to resolve CI failures of this job, visit this link. |
|
💔 Test for 9aa41fe failed: CI. Failed job:
|
|
@bors p=0 |
|
Panic in |
This comment has been minimized.
This comment has been minimized.
What is this?This is an experimental post-merge analysis report that shows differences in test outcomes between the merged PR and its parent PR.Comparing 20d35a3 (parent) -> 4b6d04e (this PR) Test differencesShow 4 test diffs4 doctest diffs were found. These are ignored, as they are noisy. Test dashboardRun cargo run --manifest-path src/ci/citool/Cargo.toml -- \
test-dashboard 4b6d04e706108ccfeafe2547fbe857dfe8972bad --output-dir test-dashboardAnd then open Job duration changes
How to interpret the job duration changes?Job durations can vary a lot, based on the actual runner instance |
|
Finished benchmarking commit (4b6d04e): comparison URL. Overall result: ❌✅ regressions and improvements - please read:Our benchmarks found a performance regression caused by this PR. Next Steps:
@rustbot label: +perf-regression Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)Results (primary 2.6%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (secondary -4.7%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeThis perf run didn't have relevant results for this metric. Bootstrap: 497.229s -> 501.089s (0.78%) |
View all comments
Some changes from #158845 for benchmarking.
decided to change Mutex to
datastructures::sync::Lock.r? @petrochenkov