Repository navigation
De-inline interned span ops - #165124
De-inline interned span ops#165124
Conversation
|
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
De-inline interned span ops
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Finished benchmarking commit (f92e042): comparison URL. Overall result: ❌ regressions - 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 -0.4%, secondary -1.5%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (primary 0.8%, secondary 0.0%)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: 490.291s -> 495.231s (1.01%) |
Interned spans are rare, and interned lookups are complex, involving TLS lookups and locking. This commit moves them out of line from `Interned::data` (affecting several `Span` operations), plus `Span::is_dummy`, `Span::parent`. This makes them match `Span::new_ordered`, which already has the interned case out of line. This reduces rustc binary size and is a very small perf win.
6637d85 to
27053d2
Compare
|
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
De-inline interned span ops
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Finished benchmarking commit (92a0ae6): 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 (secondary -1.1%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (primary 2.4%)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: 484.843s -> 488.368s (0.73%) |
|
The second perf run is slightly positive, and the elimination of the |
|
@bors r+ |
This comment has been minimized.
This comment has been minimized.
…rochenkov De-inline interned span ops Interned spans are rare, and interned lookups are complex, involving TLS lookups and locking. This commit moves them out of line from `Interned::data` (affecting several `Span` operations), plus `Span::is_dummy`, `Span::parent`. This makes them match `Span::new_ordered`, which already has the interned case out of line. This reduces rustc binary size and is a very small perf win. r? @petrochenkov
|
💔 Test for 41c525f failed: CI. Failed job:
|
|
@bors retry |
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 349bba6 (parent) -> 3b5aab2 (this PR) Test differencesShow 2 test diffs2 doctest diffs were found. These are ignored, as they are noisy. Test dashboardRun cargo run --manifest-path src/ci/citool/Cargo.toml -- \
test-dashboard 3b5aab2cea0711a2cc87a5a71338b5dba241b6a9 --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 (3b5aab2): comparison URL. Overall result: ✅ improvements - no action needed@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)This perf run didn't have relevant results for this metric. CyclesResults (primary -3.3%, secondary 15.3%)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: 493.204s -> 487.913s (-1.07%) |
View all comments
Interned spans are rare, and interned lookups are complex, involving TLS lookups and locking. This commit moves them out of line from
Interned::data(affecting severalSpanoperations), plusSpan::is_dummy,Span::parent. This makes them matchSpan::new_ordered, which already has the interned case out of line.This reduces rustc binary size and is a very small perf win.
r? @petrochenkov