rust/src/librustdoc/html/static
Matthias Krüger a95e2f999a
Rollup merge of #122247 - notriddle:notriddle/search-unbox-limit, r=GuillaumeGomez
rustdoc-search: depth limit `T<U>` -> `U` unboxing

Profiler output:
https://notriddle.com/rustdoc-html-demo-9/search-unbox-limit/ (the only significant change is that one of the `rust` tests went from 378416ms to 16ms).

This is a performance enhancement aimed at a problem I found while using type-driven search on the Rust compiler. It is caused by [`Interner`], a trait with 41 associated types, many of which recurse back to `Self` again.

This caused search.js to struggle. It eventually terminates, after about 10 minutes of turning my PC into a space header, but it's doing `41!` unifications and that's too slow.

[`Interner`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/trait.Interner.html
2024-03-14 15:44:32 +01:00
..
css Rollup merge of #120526 - GuillaumeGomez:mobile-long-crate-name, r=notriddle 2024-02-18 05:10:16 +01:00
fonts avoid reuse tripping over copyright notices 2023-03-09 12:24:43 +01:00
images rustdoc: bundle sidebar button icon into CSS 2023-10-11 10:27:15 -07:00
js Rollup merge of #122247 - notriddle:notriddle/search-unbox-limit, r=GuillaumeGomez 2024-03-14 15:44:32 +01:00
.eslintrc.js Put backtick content from rustdoc search errors into a <code> elements 2023-03-02 12:59:04 +01:00
COPYRIGHT.txt avoid reuse tripping over copyright notices 2023-03-09 12:24:43 +01:00
LICENSE-APACHE.txt Make rustdoc output comply with licenses 2015-09-19 10:42:03 +01:00
LICENSE-MIT.txt Make rustdoc output comply with licenses 2015-09-19 10:42:03 +01:00
scrape-examples-help.md Update scrape-examples help, fix documentation typos 2022-12-07 09:08:43 -08:00