diff options
| author | blyxyas <blyxyas@gmail.com> | 2025-04-25 20:25:51 +0200 |
|---|---|---|
| committer | blyxyas <blyxyas@gmail.com> | 2025-04-25 21:14:37 +0200 |
| commit | 565cf5a89e0d197d52cd428b0d78556eb88fc9a0 (patch) | |
| tree | 9d77a5f7e5890dfc450acb3eccc2c900de137d5e /tests/rustdoc-js-std/parser-weird-queries.js | |
| parent | 34f81f96e9f43ba5c033f146eabbd5eb0d48638f (diff) | |
| download | rust-565cf5a89e0d197d52cd428b0d78556eb88fc9a0.tar.gz rust-565cf5a89e0d197d52cd428b0d78556eb88fc9a0.zip | |
Optimize documentation lints **a lot** (1/2)
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 18 lines of documentation on `tokio`, which ends up being about 1800 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 issue number 1034 is merged will be open. Note that not all crates were affected by this crate equally, those with more docs are affected far more than those light ones.
Diffstat (limited to 'tests/rustdoc-js-std/parser-weird-queries.js')
0 files changed, 0 insertions, 0 deletions
