about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2022-06-24 17:12:58 -0700
committerMichael Howell <michael@notriddle.com>2022-06-24 18:16:33 -0700
commitdc1fc08dc9a6957a79cc24edde4dc016debf3fa7 (patch)
tree60b67aa8501941b18e35679911283cfa07d8aea3 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parentfdca237d5194bf8a1c9b437ebd2114d1c2ba6195 (diff)
downloadrust-dc1fc08dc9a6957a79cc24edde4dc016debf3fa7.tar.gz
rust-dc1fc08dc9a6957a79cc24edde4dc016debf3fa7.zip
rustdoc: reference function signature types from the `p` array
This reduces the size of the function signature index, because
it's common to have many functions that operate on the same types.

    $ wc -c search-index-old.js search-index-new.js
    5224374 search-index-old.js
    3932314 search-index-new.js

By my math, this reduces the uncompressed size of the search index by 32%.
On compressed signatures, the wins are less drastic, a mere 8%:

    $ wc -c search-index-old.js.gz search-index-new.js.gz
    404532 search-index-old.js.gz
    371635 search-index-new.js.gz
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions