-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Optimize performance by inline in macro hygiene system #144385
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
@bors2 try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
Optimize performance in macro hygiene system
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (70a86f7): 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 (primary 5.1%, secondary 0.2%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (secondary 1.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: 468.582s -> 468.539s (-0.01%) |
Did you check that the |
I tested the execution efficiency of the first commit locally, and it does show a slight improvement in execution time, but I'm not sure if all the functions marked by #[inline] are actually inlined. do you have a good idea? |
@rustbot ready |
Since we are adding inline to small functions, it probably makes sense to add it to |
The PR description also needs to be updated. |
Reminder, once the PR becomes ready for a review, use |
Signed-off-by: xizheyin <[email protected]>
@rustbot ready |
@bors2 try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
Optimize performance by inline in macro hygiene system
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (dc79eb3): 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 -1.0%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (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: 468.258s -> 469.253s (0.21%) |
The results look good, all of them are improved. |
@bors r+ rollup=maybe |
…nkov Optimize performance by inline in macro hygiene system I inline some small method in `rustc_span/src/hygiene.rs` and so on.
I inline some small method in
rustc_span/src/hygiene.rs
and so on.