-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Also hash spans inside the same file as relative. #143882
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
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
Also hash spans inside the same file as relative. r? `@ghost` for perf
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
Also hash spans inside the same file as relative. r? `@ghost` for perf
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
Also hash spans inside the same file as relative. r? `@ghost` for perf
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (9b70448): comparison URL. Overall result: ❌✅ regressions and improvements - 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 0.1%, secondary 4.1%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (primary -9.8%, secondary -3.9%)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: 465.532s -> 464.536s (-0.21%) |
r? @fee1-dead rustbot has assigned @fee1-dead. Use |
r? compiler |
r? compiler |
I'm not totally convinced this is beneficial. It may just be that our incremental tests are not robust enough to demonstrate the benefit, but right now it looks like it only improves the behavior of one type of test. Do you want to share some words summarizing your thoughts about the perf results, @cjgillot? @rustbot author |
Reminder, once the PR becomes ready for a review, use |
The goal is to accelerate the incr-patched test case: code that just moved because of an unrelated change. In this idea, this PR is a success. OTOH, the regression on incr-unchanged test case is unfortunate, because This is a trade-off. I'm inclined to try making the incr-patched test case faster, as that is the core target of incr-comp. I'm open to discuss it. |
We definitely do not have a lot of interesting incr patched examples in our suite, so it's possible that this might be more useful than it first seems, but already the >10% win on nalgebra seems really good. Stuff randomly moving and then having to be recompiled is personally a big annoyance for me, and if this can help avoiding that, I'm all for landing it, even if it causes small regressions for incr-unchanged. |
It's interesting though, I checked both nalgebra and diesel, and both add a |
Spans that have a parent and that are contained in that parent are hashed as relative to the start position of their parent.
This works well for function bodies, but does not handle attributes.
This PR proposes to extend relative hashing when the span and the parent are in the same file.