Repository navigation
Hash parent in SyntaxContext - #166636
Hash parent in SyntaxContext#166636aerooneqq wants to merge 2 commits into
SyntaxContext#166636Conversation
|
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
Hash parent in `SyntaxContext`
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Finished benchmarking commit (2bbc916): comparison URL. Overall result: ❌✅ regressions and improvements - please read:Benchmarking means the PR may be perf-sensitive. It's automatically marked not fit for rolling up. Overriding is possible but disadvised: it risks changing compiler perf. Next, please: If you can, justify the regressions found in this try perf run in writing along with @bors rollup=never rustc-perf 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 -3.6%, secondary -0.2%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (secondary -0.2%)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: 461.754s -> 461.589s (-0.04%) |
|
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
Hash parent in `SyntaxContext`
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I strongly suspect that this can cause issues without the parallel AST lowering too, they just weren't noticed or tracked to the root cause, because they need nested macro definitions to reproduce and may be uncommon. |
|
For the record, example of an expansion data whose syntax context is in the group of same hashes: This macro: rust/library/core/src/num/mod.rs Line 1608 in b8794ab Maybe I will be able to make a smaller preproducer and add run make test. |
|
Finished benchmarking commit (60f2ac3): comparison URL. Overall result: ❌ regressions - please read:Benchmarking means the PR may be perf-sensitive. It's automatically marked not fit for rolling up. Overriding is possible but disadvised: it risks changing compiler perf. Next, please: If you can, justify the regressions found in this try perf run in writing along with @bors rollup=never rustc-perf 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 1.3%, secondary 0.7%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (primary -1.9%, secondary 1.1%)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: 460.722s -> 459.819s (-0.20%) |
We need to hash parent too, otherwise there may be collisions and non-deterministic remappings when parallel AST -> HIR lowering is enabled (#163495). First will try without caching, maybe perf will be ok, if not, will add caches as in expansions.
r? @petrochenkov