rust/src/librustdoc
Michael Howell fbb6300fc2 rustdoc-search: stop constructing pointless arrays in decode
I'm not sure why I ever thought that would be okay. This is
clearly hot code, and should avoid Array.prototype.map when
it's not needed. In any case, it shows up in the profiler.

rustdoc-js-profiler:
https://notriddle.com/rustdoc-html-demo-11/decode-opt-1/index.html

Firefox profiler:
[Before](https://share.firefox.dev/3RRH2fR)
[After](https://share.firefox.dev/3Wblcq8)
2024-07-05 10:23:59 -07:00
..
clean Rollup merge of #127289 - aDotInTheVoid:rustdoc-json-lt, r=GuillaumeGomez 2024-07-04 04:09:51 -04:00
doctest Use a dedicated type instead of a reference for the diagnostic context 2024-06-18 15:42:11 +00:00
formats Revert "Rollup merge of #124976 - petrochenkov:usedcrates, r=oli-obk" 2024-06-06 10:06:28 +00:00
html rustdoc-search: stop constructing pointless arrays in decode 2024-07-05 10:23:59 -07:00
json rustdoc-json: Better representation of lifetime bounds in where clauses. 2024-07-03 20:00:56 +00:00
passes Rollup merge of #127301 - estebank:fix-suggestions, r=Urgau 2024-07-04 18:16:24 +02:00
theme rustdoc: merge theme css into rustdoc.css 2023-09-15 07:40:17 -07:00
askama.toml Remove unneeded minus sign in jinja tags 2023-03-06 11:38:15 +01:00
Cargo.toml rustdoc: add usable lint for pulldown-cmark-0.11 parsing changes 2024-07-01 07:21:02 -07:00
config.rs Use a dedicated type instead of a reference for the diagnostic context 2024-06-18 15:42:11 +00:00
core.rs Use a dedicated type instead of a reference for the diagnostic context 2024-06-18 15:42:11 +00:00
docfs.rs remove redundant imports 2023-12-10 10:56:22 +08:00
doctest.rs Use a dedicated type instead of a reference for the diagnostic context 2024-06-18 15:42:11 +00:00
error.rs Remove crate visibility modifier in libs, tests 2022-05-21 00:32:47 -04:00
externalfiles.rs Use a dedicated type instead of a reference for the diagnostic context 2024-06-18 15:42:11 +00:00
fold.rs Implement unsafe_extern_blocks feature in rustdoc 2024-06-20 22:12:35 +02:00
lib.rs Use a dedicated type instead of a reference for the diagnostic context 2024-06-18 15:42:11 +00:00
lint.rs rustdoc: add usable lint for pulldown-cmark-0.11 parsing changes 2024-07-01 07:21:02 -07:00
markdown.rs Move Markdown-specific doctest code into submodule 2024-06-07 17:48:47 +02:00
README.md rust-lang.github.io/rustc-dev-guide -> rustc-dev-guide.rust-lang.org 2020-03-10 17:08:18 -03:00
scrape_examples.rs Use a dedicated type instead of a reference for the diagnostic context 2024-06-18 15:42:11 +00:00
theme.rs Use a dedicated type instead of a reference for the diagnostic context 2024-06-18 15:42:11 +00:00
visit.rs Implement unsafe_extern_blocks feature in rustdoc 2024-06-20 22:12:35 +02:00
visit_ast.rs Don't require visit_body to take a lifetime that must outlive the function call 2024-05-29 10:04:08 +00:00
visit_lib.rs Correctly handle --document-hidden-items 2023-07-14 17:25:09 +02:00

For more information about how librustdoc works, see the rustc dev guide.