Optimize performance by inline in macro hygiene system#144385
Optimize performance by inline in macro hygiene system#144385bors merged 1 commit intorust-lang:masterfrom
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 <xizheyin@smail.nju.edu.cn>
|
@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.
Rollup of 4 pull requests Successful merges: - #144226 (Do not assert layout in KnownPanicsLint.) - #144385 (Optimize performance by inline in macro hygiene system) - #144454 (move uefi test to run-make) - #144455 (Unify LLVM ctlz/cttz intrinsic generation) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of #144385 - xizheyin:macro-hygiene, r=petrochenkov 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.rsand so on.