rustdoc: use a more compact encoding for implementors/trait.*.js by notriddle ·...
source link: https://github.com/rust-lang/rust/pull/100150
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Conversation
The exact amount that this reduces the size of an implementors file depends on whether most of the impls are synthetic or not. For Send
, it reduces the file from 128K to 112K, while for Clone
it went from 64K to 44K.
Collaborator
rustbot commented 15 days ago
Some changes occurred in HTML/CSS/JS. cc @GuillaumeGomez, @Folyd, @jsha |
added the T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. label
Collaborator
rust-highfive commented 15 days ago
r? @jsha (rust-highfive has picked a reviewer for you, use r? to override) |
added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label
Looks good to me but I'm curious about the perf impact so let's check. @bors try @rust-timer queue |
Collaborator
rust-timer commented 15 days ago
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label
Contributor
bors commented 15 days ago
Contributor
bors commented 15 days ago
Try build successful - checks-actions |
Collaborator
rust-timer commented 15 days ago
Collaborator
rust-timer commented 15 days ago
Finished benchmarking commit (0c2c82b): comparison url. Instruction count
Max RSS (memory usage)Results CyclesResults If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf. Next Steps: If you can justify the regressions found in this try perf run, please indicate this with @bors rollup=never Footnotes
|
added perf-regression Performance regressions
and removed S-waiting-on-perf Status: Waiting on a perf run to be completed.
labels
Contributor
Author
notriddle commented 14 days ago
The perf impact seems real, probably because of copying Strings around more than necessary. Let's see if using @bors try @rust-timer queue |
Collaborator
rust-timer commented 14 days ago
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label
Contributor
bors commented 14 days ago
Contributor
bors commented 14 days ago
Try build successful - checks-actions |
Collaborator
rust-timer commented 14 days ago
Collaborator
rust-timer commented 14 days ago
Finished benchmarking commit (10f0d31): comparison url. Instruction count
Max RSS (memory usage)Results CyclesResults If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf. Next Steps: If you can justify the regressions found in this try perf run, please indicate this with @bors rollup=never Footnotes
|
removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label
Contributor
Author
notriddle commented 14 days ago
Last attempt. If it's not all the string copying, it's probably that serde_json is faster at escaping strings than my naive function was. To try this, I can use serde to implement the same format I was using, except that it uses double-quoted strings, so all the double-quotes in the HTML snippets get backslash escaped. An unfortunate loss, but not a huge deal. Getting rid of the unused data in those files still makes this a huge win. @bors try @rust-timer queue |
Collaborator
rust-timer commented 14 days ago
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label
Contributor
bors commented 14 days ago
Contributor
bors commented 14 days ago
Try build successful - checks-actions |
Collaborator
rust-timer commented 14 days ago
Collaborator
rust-timer commented 14 days ago
Finished benchmarking commit (99be0b6): 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. Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf. @bors rollup=never Footnotes
|
Congrats for the perf fix, this is really awesome! @bors r+ |
Contributor
bors commented 11 days ago
added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
labels
Contributor
bors commented 10 days ago
Contributor
bors commented 10 days ago
Test successful - checks-actions |
Collaborator
rust-timer commented 10 days ago
Finished benchmarking commit (34a6cae): comparison url. Instruction count
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
|
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Successfully merging this pull request may close these issues.
None yet
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK