-
Notifications
You must be signed in to change notification settings - Fork 14k
Encode cfg trace, not its early counterpart to fix cross-crate doc(auto_cfg)
#148660
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
|
Great, thanks! r=me once CI pass. |
|
The job Click to see the possible cause of the failure (guessed by this bot) |
|
cfg is quite a perf sensitive attribute since it's used so much, also had problems with it during the port of |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Encode cfg trace, not its early counterpart to fix cross-crate `doc(auto_cfg)`
This comment has been minimized.
This comment has been minimized.
|
Finished benchmarking commit (8d673fe): comparison URL. Overall result: ❌ regressions - please read the text belowBenchmarking 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. Next Steps: If you can justify the regressions found in this try perf run, please do so in sufficient writing along with @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.6%, secondary -2.7%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (secondary 7.1%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeResults (primary 0.6%, secondary 0.4%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Bootstrap: 483.325s -> 473.961s (-1.94%) |
|
Well that's to be expected as we're strictly doing more work here. Namely, encoding & decoding more attributes (previously, with Moreover, this fixes a correctness regression (introduced in #138844), so this is justified. I did look at the perf improvements of the rollup that included the regressing PR (#139023 (comment)) but my findings weren't conclusive (a hypothesis of mine was that we're just reverting the perf improvements of the regressing PR to end up at a net zero). Anyway, I find the regression justifiable. @rustbot label perf-regression-triaged |
|
@bors r=GuillaumeGomez |
|
Yep sounds reasonable, just wanted to make sure we are aware of the performance impact when making this change :) |
Fixes #141301.
Rambling about
target_featurewhich I didn't touch hereRegarding #141301 (comment) (
#[target_feature(enable = …)]on inlined cross-crate re-exports), it has the same underlying cause (namely, we neither encodetarget_featurenorAttributeKind::TargetFeaturein the crate metadata). However, I didn't make that change because I first want to experiment with queryingTyCtxt::codegen_fn_attrsin rustdoc instead which already works cross-crate (and also use to it for reconstructingno_mangle,export_name,link_sectionto avoid encoding these attributes unnecessarily (basically reverting #144050) as suggested in #144004 (comment)).r? GuillaumeGomez