Use .map.collect to aggregate in .to_ty of tuples#152265
Use .map.collect to aggregate in .to_ty of tuples#152265rust-bors[bot] merged 1 commit intorust-lang:mainfrom
.map.collect to aggregate in .to_ty of tuples#152265Conversation
|
r? @mati865 rustbot has assigned @mati865. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
According to #53019 the current code was motivated by performance, so let's double-check; things are probably fine nowadays. @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.
Use `.collect.map` to aggregate in `.to_ty` of tuples
|
(Also I was very confused by the issue number in this PR's description, but it was just a typo and I updated it to the actual issue number from the FIXME.) EDIT: Actually the “fix” cited in the description is also bogus, because it applies to the typoed PR number and appears to have nothing to do with this FIXME. I'll remove that too. |
|
|
r? me |
|
This PR doesn't address the issue mentioned in the updated description. The Span-related issue from my original description was fixed in |
|
The code change in this PR tries to address a However, the original description of this PR cited this seemingly-unrelated issue instead: Notice the similarity between 48994 and 48944. |
|
Ah my bad! Sorry for the mistake. Anyway I also think this won't hurt performance. |
This comment has been minimized.
This comment has been minimized.
|
Finished benchmarking commit (e85694f): comparison URL. Overall result: ✅ 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 (secondary -4.9%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (secondary 4.1%)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: 475.659s -> 475.091s (-0.12%) |
|
Oh I just noticed, is |
fe3770e to
b5cd820
Compare
|
Thanks, fixed. It seems I can't change the PR title myself - is there any way to do this? |
.collect.map to aggregate in .to_ty of tuples.map.collect to aggregate in .to_ty of tuples
|
Since there was no measurable perf difference, not even in stress tests, it should be safe to merge this nice little improvement. Thanks for the fix! @bors r+ rollup |
Use `.map.collect` to aggregate in `.to_ty` of tuples Since rust-lang#48994 might have been resolved, we can address the FIXME.
Since #48994 might have been resolved, we can address the FIXME.