Conversation
`Metadata` has two methods, `blob` and `decoder`, which are not used together. Splitting the trait in two will allow some cleanups in subsequent commits.
It's currently an impl for `(CrateMetadataRef, TyCtxt)`, but (a) the `TyCtxt` is not used, and (b) the `CrateMetadataRef` can be simplified to a `CrateMetadata` because `CStore` access isn't required. This require changing `blob` to take `&self`, which is no big deal, and it simplifies many `get` calls.
They are unused because of the previous commit.
|
I don't think this will affect perf, but let's make sure: @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.
This comment has been minimized.
This comment has been minimized.
|
Finished benchmarking commit (9f48501): comparison URL. Overall result: ✅ improvements - no action neededBenchmarking 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. @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 -0.4%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesThis perf run didn't have relevant results for this metric. Binary sizeThis perf run didn't have relevant results for this metric. Bootstrap: 491.717s -> 508.836s (3.48%) |
be48911 to
f0ebd66
Compare
|
@rustbot ready |
There was a problem hiding this comment.
I'm not a fan of having these kind of impls for tuples, thanks for cleaning that up a bit.
@bors r+
|
Regarding unused |
This PR removes some of those, but not all of them. |
Details in individual commits.
r? @mejrs