-
Notifications
You must be signed in to change notification settings - Fork 12.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rustdoc: reference function signature types from the p
array
#98475
rustdoc: reference function signature types from the p
array
#98475
Conversation
Some changes occurred in HTML/CSS/JS. cc @GuillaumeGomez,@Folyd,@jsha Some changes occurred in cc @camelid |
(rust-highfive has picked a reviewer for you, use r? to override) |
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
e64f1e7
to
dc1fc08
Compare
Changes look good to me. Do you have an online version by any chance? |
This is so good. I hope this PR wouldn't break my extension, haha. 😄 |
It depends on whether you use the |
579a13d
to
6f9a460
Compare
Co-authored-by: Guillaume Gomez <[email protected]>
Still this question:
Apart from that, looks really great. :) |
|
Please add this explanation then. :) |
f8f23fe
to
33cf9ea
Compare
Thanks, it's awesome! r=me once CI pass. |
@bors r=GuillaumeGomez rollup=never This might have a perf impact. Even if it's a sizeable regression, it would probably be worth it, but we still don't want it included in a rollup. |
📌 Commit 33cf9ea has been approved by |
☀️ Test successful - checks-actions |
Finished benchmarking commit (2953edc): comparison url. Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)Results
CyclesResults
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. @rustbot label: -perf-regression Footnotes |
This reduces the size of the function signature index, because it's common to have many functions that operate on the same types.
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%: