Conversation
This comment has been minimized.
This comment has been minimized.
26d91f0 to
b15eeea
Compare
This comment has been minimized.
This comment has been minimized.
b15eeea to
057eced
Compare
This comment has been minimized.
This comment has been minimized.
4316c71 to
e481572
Compare
|
@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.
Remove generics from `DepGraph`
This comment has been minimized.
This comment has been minimized.
|
Finished benchmarking commit (1f642ee): comparison URL. Overall result: ❌ regressions - please read the text belowBenchmarking this pull request means it may be perf-sensitive – we'll automatically label it not fit for rolling up. You can override this, but we strongly advise not to, due to possible changes in compiler perf. Next Steps: If you can justify the regressions found in this try perf run, please do so in sufficient writing along with @bors rollup=never 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 -1.3%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (primary 8.9%, secondary 1.1%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 473.737s -> 471.042s (-0.57%) |
|
@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.
Remove generics from `DepGraph`
This comment has been minimized.
This comment has been minimized.
e481572 to
3ebaa8b
Compare
|
@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.
Remove generics from `DepGraph`
This comment has been minimized.
This comment has been minimized.
|
Finished benchmarking commit (3bc6aa4): comparison URL. Overall result: ❌ regressions - please read the text belowBenchmarking this pull request means it may be perf-sensitive – we'll automatically label it not fit for rolling up. You can override this, but we strongly advise not to, due to possible changes in compiler perf. Next Steps: If you can justify the regressions found in this try perf run, please do so in sufficient writing along with @bors rollup=never 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 2.4%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (primary -2.1%, secondary -1.7%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 476.238s -> 472.74s (-0.73%) |
|
I'm surprised to see a perf difference at all. Perhaps removing the generics has accidentally resulted in less inlining, and we would need some inlining attributes to compensate? |
| /// This must match the use of the define_dep_nodes! macro. | ||
| #[repr(u16)] | ||
| enum BuiltinDepKinds { | ||
| /// We use this for most things when incr. comp. is turned off. | ||
| Null, | ||
|
|
||
| /// We use this to create a forever-red node. | ||
| Red, | ||
|
|
||
| /// We use this to create a side effect node. | ||
| SideEffect, | ||
|
|
||
| /// We use this to create the anon node with zero dependencies. | ||
| AnonZeroDeps, | ||
| } |
There was a problem hiding this comment.
Suggestion: Perhaps we could match exhaustively on this enum in the downstream-crate assertions, to statically double-check that we've asserted on all of the constants that actually need to match.
|
☔ The latest upstream changes made this pull request unmergeable. Please resolve the merge conflicts. |
This removes generics from
DepGraphby predefining some properties of dep kinds inrustc_query_system.DEP_KIND_NULL,DEP_KIND_RED,DEP_KIND_SIDE_EFFECTandDEP_KIND_ANON_ZERO_DEPSget their indices assigned inrustc_query_systemand the bits needed to encode dep kinds is also hardcoded there. These are checked later inrustc_middle.read_index,assert_ignoredandwith_ignoreare redefined onDepContextto avoid manual passing of theDepstype.