about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/example/alloc_example.rs
diff options
context:
space:
mode:
authorblyxyas <blyxyas@gmail.com>2025-05-22 12:44:37 +0200
committerblyxyas <blyxyas@gmail.com>2025-05-23 19:46:28 +0200
commit4a7598f815825fa485a9f71d759a2f2faf9342ed (patch)
tree1858ac0657e734faa45363f03b92035f06061ae9 /compiler/rustc_codegen_gcc/example/alloc_example.rs
parent5dccb101ed9efc812ab5acbb0dee915d2b3502b9 (diff)
downloadrust-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