diff options
| author | blyxyas <blyxyas@gmail.com> | 2025-05-22 12:44:37 +0200 |
|---|---|---|
| committer | blyxyas <blyxyas@gmail.com> | 2025-05-23 19:46:28 +0200 |
| commit | 4a7598f815825fa485a9f71d759a2f2faf9342ed (patch) | |
| tree | 1858ac0657e734faa45363f03b92035f06061ae9 /compiler/rustc_codegen_gcc/example/alloc_example.rs | |
| parent | 5dccb101ed9efc812ab5acbb0dee915d2b3502b9 (diff) | |
| download | rust-4a7598f815825fa485a9f71d759a2f2faf9342ed.tar.gz rust-4a7598f815825fa485a9f71d759a2f2faf9342ed.zip | |
[HEAVY PERF] Optimize documentation lints 2/2
So, after https://github.com/rust-lang/rust-clippy/pull/14693 was merged, this is the continuation. It performs some optimizations on `Fragments::span` , makes it so we don't call it so much, and makes a 85.75% decrease (7.51% -> 10.07%) in execution samples of `source_span_for_markdown_range` and a 6.39% -> 0.88% for `core::StrSearcher::new`. Overall a 13.11% icount decrase on docs-heavy crates. Benchmarked mainly on `regex-1.10.5`. This means that currently our heaviest function is `rustc_middle::Interners::intern_ty`, even for documentation-heavy crates Co-authored-by: Roope Salmi <rpsalmi@gmail.com>
Diffstat (limited to 'compiler/rustc_codegen_gcc/example/alloc_example.rs')
0 files changed, 0 insertions, 0 deletions
