diff options
| author | Jacob Hoffman-Andrews <github@hoffman-andrews.com> | 2022-08-11 06:59:58 -0700 |
|---|---|---|
| committer | Jacob Hoffman-Andrews <github@hoffman-andrews.com> | 2022-08-11 17:00:17 -0700 |
| commit | dd4613cbc091860d4b56f506b195b92c87f022a1 (patch) | |
| tree | 7fde84e81aff1c81461163fe380627704c9a5af8 /library/std/src/sys/unix/stdio.rs | |
| parent | 187654481fd828e495919295369d33827f10e1c4 (diff) | |
| download | rust-dd4613cbc091860d4b56f506b195b92c87f022a1.tar.gz rust-dd4613cbc091860d4b56f506b195b92c87f022a1.zip | |
rustdoc: don't generate DOM element for operator
In our source page highlighting, we were generating `<span class="op">` tags for all "operators", including e.g. `<` `>` around generic parameters, `*`, `&`. This contributed significantly to DOM size, but we don't actually style `.op` except in the ayu theme. Remove the styles for `.op` in ayu, and stop generating the `<span>`s. This reduces DOM size of an example page[1] from 265,938 HTML elements to 242,165 elements, a 9% reduction. [1]: https://doc.rust-lang.org/nightly/src/core/up/up/stdarch/crates/core_arch/src/x86/avx512f.rs.html
Diffstat (limited to 'library/std/src/sys/unix/stdio.rs')
0 files changed, 0 insertions, 0 deletions
