rust/tests
Jason Newcomb a6e40fa9e9
[Perf] Optimize documentation lints **a lot** (1/2) (18% -> 10%) (#14693)
Turns out that `doc_markdown` uses a non-cheap rustdoc function to
convert from markdown ranges into source spans. And it was using it a
lot (about once every 17 lines of documentation on `tokio`, which ends
up being about 2000 times).

This ended up being about 18% of the total Clippy runtime as discovered
by lintcheck --perf in docs-heavy crates. This PR optimizes one of the
cases in which Clippy calls the function, and a future PR once
pulldown-cmark/pulldown-cmark#1034 is merged will be opened. This PR
lands the use of the function into the single-digit zone.

Note that not all crates were affected by this crate equally, those with
more docs are affected far more than those light ones.

changelog:[`clippy::doc_markdown`] has been optimized by 50%
2025-05-21 22:01:41 +00:00
..
test_utils
ui [Perf] Optimize documentation lints **a lot** (1/2) (18% -> 10%) (#14693) 2025-05-21 22:01:41 +00:00
ui-cargo Merge commit '9f9a822509' into clippy-subtree-update 2025-02-28 23:27:09 +01:00
ui-internal Add internal lint derive_deserialize_allowing_unknown (#14360) 2025-05-13 15:36:57 +00:00
ui-toml Misc changes (#14702) 2025-05-17 10:40:21 +00:00
workspace_test
check-fmt.rs
clippy.toml Merge commit '0621446356' into clippy-subtree-update 2025-04-22 18:24:43 +02:00
compile-test.rs Remove some unused #![feature]s 2025-05-06 14:07:39 +00:00
config-metadata.rs
dogfood.rs Fix diagnostic paths printed by dogfood test 2025-05-07 14:32:23 +00:00
headers.rs
integration.rs Use tempfile::TempDir::keep() instead of deprecated into_path() 2025-05-12 09:01:42 +02:00
lint_message_convention.rs Merge commit '1e5237f4a5' into clippy-subtree-update 2025-03-20 22:34:29 +01:00
missing-test-files.rs Merge commit '51d49c1ae2' into clippy-subtree-update 2025-01-28 19:33:54 +01:00
versioncheck.rs Clippy: skip check_host_compiler check in rustc testsuite 2025-02-28 23:27:22 +01:00
workspace.rs