-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
interpret: get_ptr_alloc_mut: lookup allocation only once #130148
Conversation
Some changes occurred to the CTFE / Miri engine cc @rust-lang/miri |
This is probably pointless, I don't think our ctfe-stress test even does many writes... |
This comment has been minimized.
This comment has been minimized.
…, r=<try> interpret: get_ptr_alloc_mut: lookup allocation only once I don't think this will make a big perf difference, but it makes this function symmetric with `get_ptr_alloc` -- and it's always nice to successfully solve a borrow checker puzzle like this. ;)
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (cc84819): comparison URL. Overall result: ✅ improvements - no action neededBenchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf. @bors rollup=never Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)This benchmark run did not return any relevant results for this metric. CyclesResults (primary 4.8%)This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 757.632s -> 757.094s (-0.07%) |
To save anyone else a few clicks, the benchmark that improves above has a huge static initializer. It does a lot of writes. r=me when you fix the conflicts :) |
4e8ddbd
to
f16f09d
Compare
@bors r=saethlin |
☀️ Test successful - checks-actions |
Finished benchmarking commit (1ae2688): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)Results (primary 3.2%, secondary -2.7%)This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 760.068s -> 759.207s (-0.11%) |
I don't think this will make a big perf difference, but it makes this function symmetric with
get_ptr_alloc
-- and it's always nice to successfully solve a borrow checker puzzle like this. ;)