-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Make skip_whitespace do a single pass (with bytes) #137275
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.
…try> Make skip_whitespace do a single pass (with bytes) Probably better alternative to rust-lang#137027. r? `@nnethercote`
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (f62fb4e): comparison URL. Overall result: no relevant changes - no action neededBenchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf. @bors rollup=never Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)Results (primary -1.6%)This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesResults (primary -4.0%)This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 773.063s -> 774.969s (0.25%) |
@hkBst: is this ready for review? |
This comment has been minimized.
This comment has been minimized.
7089355
to
258115e
Compare
@nnethercote I've now added @folkertdev's changes which look like an improvement, so another perf run would be good, but yes in principle this is ready for review. |
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
…try> Make skip_whitespace do a single pass (with bytes) Probably better alternative to rust-lang#137027. r? `@nnethercote`
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (665ef7c): comparison URL. Overall result: no relevant changes - no action neededBenchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf. @bors rollup=never Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)This benchmark run did not return any relevant results for this metric. CyclesResults (secondary 1.3%)This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 772.938s -> 773.607s (0.09%) |
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.
As a general question, would we ever expect (small) parser changes to show up as significant in the overall performance benchmarks? Surely that gets drowned out by semantic analysis and (if used) codegen?
This is probably too specific, as it only affects strings that use whitespace continuation, and makes that part a bit faster (probably?). But small changes can have like a -0.1% effect. |
f847211
to
9456ea7
Compare
They can definitely show up in incremental builds that have few or no changes, because parsing isn't incremental. And also check builds. See #136931 for a recent related example that had to be abandoned for perf regressions. |
9456ea7
to
ddc330a
Compare
This comment has been minimized.
This comment has been minimized.
ddc330a
to
38f2aa8
Compare
This comment has been minimized.
This comment has been minimized.
38f2aa8
to
377a6fb
Compare
Co-authored-by: Folkert de Vries <flokkievids@gmail.com>
377a6fb
to
cf62cd9
Compare
I've been running some performance tests, and even in the best case scenario, this change seems to perform 25% worse than the current double traversal... so I may have to pivot to documenting that... |
Probably better alternative to #137027.
r? @nnethercote