diff options
| author | Jason Newcomb <jsnewcomb@pm.me> | 2025-05-24 00:22:26 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-24 00:22:26 +0000 |
| commit | 1029572c192cd3bff1a15e0411871ed33b2bdf94 (patch) | |
| tree | 8324055e69b628173948a4be2889d8390f38b60a /compiler/rustc_codegen_gcc/example/alloc_example.rs | |
| parent | 7ab910f9355e739e3057fec1eea293637473304a (diff) | |
| parent | 4a7598f815825fa485a9f71d759a2f2faf9342ed (diff) | |
| download | rust-1029572c192cd3bff1a15e0411871ed33b2bdf94.tar.gz rust-1029572c192cd3bff1a15e0411871ed33b2bdf94.zip | |
Optimize documentation lints **a lot** (2/2) (7.5% -> 1%) (#14870)
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% -> 1.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`. @rustbot label +performance-project This means that currently our heaviest function is `rustc_middle::Interners::intern_ty`, even for documentation-heavy crates Along with rust-lang/rust-clippy#14693, this makes the lint a 7% of what it was before and makes it so that even in the most doc-heavy of crates it's not an issue. changelog:Optimize documentation lints by a further 85% r? @Jarcho
Diffstat (limited to 'compiler/rustc_codegen_gcc/example/alloc_example.rs')
0 files changed, 0 insertions, 0 deletions
