diff options
| author | Stuart Cook <Zalathar@users.noreply.github.com> | 2025-10-01 22:15:00 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-01 22:15:00 +1000 |
| commit | 62b72bd545d2caff23164732aa881ff6e169005d (patch) | |
| tree | 268bd332222d97b32f4aa3b385fc3dd3ba2e8d34 /compiler/rustc_codegen_llvm/src/errors.rs | |
| parent | ca8ed7eb805f9be8767077510c9685cc692dd032 (diff) | |
| parent | 2d03ab1486c11f2c5f8a19ae040b94edc090b279 (diff) | |
| download | rust-62b72bd545d2caff23164732aa881ff6e169005d.tar.gz rust-62b72bd545d2caff23164732aa881ff6e169005d.zip | |
Rollup merge of #147189 - yotamofek:pr/rustdoc/highlight-optimizations-2, r=GuillaumeGomez
Replace `rustc_span::Span` with a stripped down version for librustdoc's highlighter While profiling rustdoc's syntax highlighter, I noticed a lot of time being spent in the `Span` interner, due to the highlighter creating a lot of (new) spans. Since the only data from the `Span` that we use is the `hi` and `lo` byte positions - I replaced the regular `Span` with a simple one with two fields, and in my benchmarks it seemed to make a big dent in the highlighter's perf, so thought I would see what the perf runner says.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
