Closed coolreader18 closed 2 weeks ago
r? @jhpratt
rustbot has assigned @jhpratt. They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.
Use r?
to explicitly pick a reviewer
I prefer this change for clarity even if there is no performance impact. I don't foresee a negative performance change from this, so I'm going to merge it.
@bors r+ rollup=iffy
:pushpin: Commit 53b317710da997fe5e8e852ffbe45f3a3d7af35c has been approved by jhpratt
It is now in the queue for this repository.
:hourglass: Testing commit 53b317710da997fe5e8e852ffbe45f3a3d7af35c with merge 94be5ab448f9bd0209e3ec20fc355643772da7d0...
:sunny: Test successful - checks-actions Approved by: jhpratt Pushing 94be5ab448f9bd0209e3ec20fc355643772da7d0 to master...
Finished benchmarking commit (94be5ab448f9bd0209e3ec20fc355643772da7d0): comparison URL.
@rustbot label: -perf-regression
This benchmark run did not return any relevant results for this metric.
Bootstrap: 668.38s -> 668.437s (0.01%) Artifact size: 316.17 MiB -> 316.01 MiB (-0.05%)
The millis/micros/nanos cases I don't feel as strongly about, but I see no reason why
Duration::from_secs
should call intoDuration::new
- that's just creating unnecessary work for the inlining and DCE passes.