-
Notifications
You must be signed in to change notification settings - Fork 13.8k
allocator_kind and related queries converted to hooks #147388
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
base: master
Are you sure you want to change the base?
Conversation
…ance optimization
@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.
allocator_kind and related queries converted to hooks
This comment has been minimized.
This comment has been minimized.
@rustbot ready |
Finished benchmarking commit (b26819f): comparison URL. Overall result: ❌✅ regressions and improvements - 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 -2.8%, secondary 1.6%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (primary 2.1%, secondary 2.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: 469.991s -> 471.781s (0.38%) |
} else { | ||
let cdata = | ||
rustc_data_structures::sync::FreezeReadGuard::map(CStore::from_tcx(tcx), |c| { | ||
c.get_crate_data(krate).cdata |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
c.get_crate_data(krate).cdata | |
c.get_crate_data(krate).cdata.root.has_alloc_error_handler |
No need to create CrateMetadataRef
below.
} else { | ||
let cdata = | ||
rustc_data_structures::sync::FreezeReadGuard::map(CStore::from_tcx(tcx), |c| { | ||
c.get_crate_data(krate).cdata |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
c.get_crate_data(krate).cdata | |
c.get_crate_data(krate).cdata.root.has_global_allocator |
Same.
I don't think this PR does the optimization correctly. |
The current results are within noise, but let's re-measure the correct implementation just in case. |
Reminder, once the PR becomes ready for a review, use |
'allocator_kind' and related queries converted to hooks to measure performance optimization.