Repository navigation
perf: remove cache in FoldEscapingRegions - #166453
rust-bors[bot] merged 1 commit into
Conversation
|
@bors try @rust-timer queue priority=-1 |
This comment has been minimized.
This comment has been minimized.
…ons, r=<try> [EXPERIMENT] perf: remove cache in `FoldEscapingRegions`
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Finished benchmarking commit (87af8cc): comparison URL. Overall result: ✅ improvements - no action neededBenchmarking means the PR may be perf-sensitive. Consider adding rollup=never if this change is not fit for rolling up. @rustbot label: -S-waiting-on-perf -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 (secondary 5.2%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (secondary 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: 462.461s -> 461.142s (-0.29%) |
|
@nnethercote: this one gives -0.16% - -0.46% instruction counts on |
|
oh, thank you for pointing this out (and indeed, i completely forgot there was a thread on Zulip about this >.<). i think we should still merge this, considering that this cache does not improve perf in any way, and removing it makes the code a tad simpler. what do you think? |
|
Removing it for having no effect sounds good. One thing: can you check the PR that introduced it, and just check if there were any motivating test cases that aren't captured by the rustc-perf benchmark suite? If so, make sure that they don't regress. |
|
so: this cache was introduced in #135783 because of a hang. the tests that were introduced as part of this PR ( |
FoldEscapingRegionsFoldEscapingRegions
|
this was done thanks to a magic trick known as "edit PR description" :D |
…uwer Rollup of 9 pull requests Successful merges: - #166487 (core: Use autotests to split up coretests) - #165145 (Various incr comp session refactors) - #165337 (Windows: Don't make RwLock writers race readers) - #165732 (feat: rename region obligations) - #166061 (Offload: generic kernels in a lib) - #166539 (Restore the section in `global-target-feature.rs`) - #165721 (avoid Terminator:None in coroutine drop shim building) - #166453 (perf: remove cache in `FoldEscapingRegions`) - #166547 (Pin i686 msvc)
Rollup merge of #166453 - scrabsha:perf/remove-cache-fold-escaping-regions, r=nnethercote perf: remove cache in `FoldEscapingRegions`
…uwer Rollup of 9 pull requests Successful merges: - rust-lang/rust#166487 (core: Use autotests to split up coretests) - rust-lang/rust#165145 (Various incr comp session refactors) - rust-lang/rust#165337 (Windows: Don't make RwLock writers race readers) - rust-lang/rust#165732 (feat: rename region obligations) - rust-lang/rust#166061 (Offload: generic kernels in a lib) - rust-lang/rust#166539 (Restore the section in `global-target-feature.rs`) - rust-lang/rust#165721 (avoid Terminator:None in coroutine drop shim building) - rust-lang/rust#166453 (perf: remove cache in `FoldEscapingRegions`) - rust-lang/rust#166547 (Pin i686 msvc)
…uwer Rollup of 9 pull requests Successful merges: - rust-lang/rust#166487 (core: Use autotests to split up coretests) - rust-lang/rust#165145 (Various incr comp session refactors) - rust-lang/rust#165337 (Windows: Don't make RwLock writers race readers) - rust-lang/rust#165732 (feat: rename region obligations) - rust-lang/rust#166061 (Offload: generic kernels in a lib) - rust-lang/rust#166539 (Restore the section in `global-target-feature.rs`) - rust-lang/rust#165721 (avoid Terminator:None in coroutine drop shim building) - rust-lang/rust#166453 (perf: remove cache in `FoldEscapingRegions`) - rust-lang/rust#166547 (Pin i686 msvc)
…uwer Rollup of 9 pull requests Successful merges: - rust-lang/rust#166487 (core: Use autotests to split up coretests) - rust-lang/rust#165145 (Various incr comp session refactors) - rust-lang/rust#165337 (Windows: Don't make RwLock writers race readers) - rust-lang/rust#165732 (feat: rename region obligations) - rust-lang/rust#166061 (Offload: generic kernels in a lib) - rust-lang/rust#166539 (Restore the section in `global-target-feature.rs`) - rust-lang/rust#165721 (avoid Terminator:None in coroutine drop shim building) - rust-lang/rust#166453 (perf: remove cache in `FoldEscapingRegions`) - rust-lang/rust#166547 (Pin i686 msvc)

this cache was introduced in #135783 and does not serve its original purpose anymore. removing it does not affect performance.
r? @nnethercote
Note