rustdoc: use with_capacity and reserve to reduce reallocation#152503
rustdoc: use with_capacity and reserve to reduce reallocation#152503lolbinarycat wants to merge 1 commit intorust-lang:mainfrom
Conversation
|
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
rustdoc: use with_capacity and reserve to reduce reallocation
|
Oops, forgot we can do more focused perf runs now, hopefully this overwrites the perf run and doesn't start a second one. @rust-timer queue profiles=doc |
This comment has been minimized.
This comment has been minimized.
|
@bors try cancel |
|
Try build cancelled. Cancelled workflows: |
727b5fa to
5fb5262
Compare
|
@bors try |
rustdoc: use with_capacity and reserve to reduce reallocation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Finished benchmarking commit (08f322c): comparison URL. Overall result: no relevant changes - 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 countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)Results (secondary -4.5%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (secondary -2.4%)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: 476.438s -> 474.386s (-0.43%) |
|
Like many other micro-optimizations, it doesn't have enough of an impact to actually clear the significance threshold, but it does seem like it helps a bit, and it makes logical sense that it would... |
|
r? @fmease rustbot has assigned @fmease. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
What do you think? Are the small (hard to measure) improvements worth it? |
|
I'd tend to say that if code isn't much better and perf doesn't change expected improvement, it's not worth it. In particular, we now add lot more pre-computed lengths that might be hard to keep up to date. |
No description provided.