Conversation
This comment has been minimized.
This comment has been minimized.
|
@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 (0182a57): comparison URL. Overall result: ❌ regressions - no action neededBenchmarking 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. @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 0.3%, secondary 1.2%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (secondary 6.3%)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: 482.035s -> 481.186s (-0.18%) |
|
Should we remove |
|
I’m surprised that this doesn’t have a big perf impact, though as you say, that’s probably because we end up promoting the values from disk later on anyway. The way that we currently do promotion seems like it has room for improvement, so it might be prudent to leave |
|
I'm always sympathetic to the idea of removing unnecessary stuff :) Is there a meaningful difference between The comment on That sounds like partly an efficiency concern and partly a behavioural concern (the "guarantee" part). But I don't know if that comment is accurate. E.g. for the @Zoxc, do you know who introduced |
|
The split between I introduced the current names and docs in #136279. |
In several (most?) cases, the query used with Anything that inspects THIR or MIR has a reasonable chance of falling into this category, for example. |
|
Yea I'd expect we'll need it for turning promoteds into their own items. But we can reintroduce this when needed Just need to make sure we don't need it soon for https://github.com/rust-lang/rust/pull/153489/changes#diff-ad0c15bbde97a607d4758ec7eaf88248be5d6b8ae084dfc84127f81e3f7a9bb4R636 |
This comment has been minimized.
This comment has been minimized.
|
I've removed the |
|
r? @fmease rustbot has assigned @fmease. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
Curious. This removes 100% of cache hits of thir_abstract_const in various incremental patched tests I looked at. I don't know how to interpret that result, but it's not a perf issue anyway |
|
|
| #[derive(Debug)] | ||
| pub enum QueryMode { | ||
| /// This is a normal query call to `tcx.$query(..)` or `tcx.at(span).$query(..)`. | ||
| /// This is a query call to `tcx.$query(..)`, `tcx.at(span).$query(..)`or `tcx.ensure_done().$query(..)`. |
There was a problem hiding this comment.
| /// This is a query call to `tcx.$query(..)`, `tcx.at(span).$query(..)`or `tcx.ensure_done().$query(..)`. | |
| /// This is a query call to `tcx.$query(..)`, `tcx.at(span).$query(..)` or `tcx.ensure_done().$query(..)`. |
This removes the
ensure_doneexecution path as it doesn't have a performance impact.ensure_donecalls are left as markers still.