about summary refs log tree commit diff
path: root/compiler/rustc_resolve/src
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2024-07-05 10:23:59 -0700
committerMichael Howell <michael@notriddle.com>2024-07-05 10:23:59 -0700
commitfbb6300fc28aabd434c34b1aeece754def13b96d (patch)
treef2e743f7e06b13ae035e19865736c170375cac24 /compiler/rustc_resolve/src
parent11dd90f7613a4b160ed8398a3f1c7c129ad1a372 (diff)
downloadrust-fbb6300fc28aabd434c34b1aeece754def13b96d.tar.gz
rust-fbb6300fc28aabd434c34b1aeece754def13b96d.zip
rustdoc-search: stop constructing pointless arrays in decode
I'm not sure why I ever thought that would be okay. This is
clearly hot code, and should avoid Array.prototype.map when
it's not needed. In any case, it shows up in the profiler.

rustdoc-js-profiler:
https://notriddle.com/rustdoc-html-demo-11/decode-opt-1/index.html

Firefox profiler:
[Before](https://share.firefox.dev/3RRH2fR)
[After](https://share.firefox.dev/3Wblcq8)
Diffstat (limited to 'compiler/rustc_resolve/src')
0 files changed, 0 insertions, 0 deletions