diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-03-14 15:44:32 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-14 15:44:32 +0100 |
| commit | a95e2f999a4c5fc68cfa193fb7f17624de3f0663 (patch) | |
| tree | cdcfbdcbf1f42e10d4173c030e9acd195adab46b /compiler/rustc_llvm/llvm-wrapper/Linker.cpp | |
| parent | 7997ef4ebad683fa150b2442f1a3f8e91aafb91b (diff) | |
| parent | fa5b9f09235d73b5b7ff0b9e61ca3804b29d9514 (diff) | |
| download | rust-a95e2f999a4c5fc68cfa193fb7f17624de3f0663.tar.gz rust-a95e2f999a4c5fc68cfa193fb7f17624de3f0663.zip | |
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
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/Linker.cpp')
0 files changed, 0 insertions, 0 deletions
