Skip to content

rustdoc: Improve performance by skipping unneeded intermediate JSON serializations - #165495

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
GuillaumeGomez:skip-intermediate-json-serialization
Nov 7, 2026
Merged

rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
GuillaumeGomez:skip-intermediate-json-serialization

Conversation

@GuillaumeGomez

Copy link
Copy Markdown
Member

Should help with #149915.

r? ghost

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. T-rustdoc-frontend Relevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output. labels Nov 5, 2026
@GuillaumeGomez

Copy link
Copy Markdown
Member Author

@bors try @rust-timer queue

@rust-timer

This comment has been minimized.

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Nov 5, 2026
@rust-bors

This comment has been minimized.

rust-bors Bot pushed a commit that referenced this pull request Nov 5, 2026
…zation, r=<try>

rustdoc: Improve performance by skipping unneeded intermediate JSON serializations
@rust-bors

rust-bors Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

☀️ Try build successful (CI)
Build commit: d7992ed (d7992edffe4ffbb5527ebe3f182c44c79c31fad9)
Base parent: 2d20b42 (2d20b42b883dcfc014f3c2c56081eeb6091c2179)

@rust-timer

This comment has been minimized.

@rust-timer

Copy link
Copy Markdown

Finished benchmarking commit (d7992ed): comparison URL.

Overall result: no relevant changes - no action needed

Benchmarking means the PR may be perf-sensitive. Consider adding rollup=never if this change is not fit for rolling up.

@rustbot label: -S-waiting-on-perf -perf-regression

Instruction count

This perf run didn't have relevant results for this metric.

Max RSS (memory usage)

Results (primary -0.6%, secondary 1.0%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
2.9% [2.3%, 3.4%] 2
Regressions ❌
(secondary)
4.5% [4.4%, 4.6%] 2
Improvements ✅
(primary)
-4.1% [-5.9%, -2.3%] 2
Improvements ✅
(secondary)
-2.5% [-2.9%, -2.2%] 2
All ❌✅ (primary) -0.6% [-5.9%, 3.4%] 4

Cycles

Results (primary 2.9%, secondary 4.8%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
2.9% [2.2%, 4.6%] 8
Regressions ❌
(secondary)
4.8% [3.2%, 6.5%] 3
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 2.9% [2.2%, 4.6%] 8

Binary size

This perf run didn't have relevant results for this metric.

Bootstrap: 480.462s -> 481.175s (0.15%)
Artifact size: 406.22 MiB -> 406.37 MiB (0.04%)

@rustbot rustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Nov 5, 2026
@GuillaumeGomez
GuillaumeGomez marked this pull request as ready for review November 5, 2026 13:04
@GuillaumeGomez

Copy link
Copy Markdown
Member Author

Well, code is shorter at least so it's always that...

r? @lolbinarycat

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Nov 5, 2026
@lolbinarycat

Copy link
Copy Markdown
Contributor

@bors r+

@rust-bors

rust-bors Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 9e1f871 has been approved by lolbinarycat

It is now in the queue for this repository.

@rust-bors rust-bors Bot 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 Nov 6, 2026
rust-bors Bot pushed a commit that referenced this pull request Nov 6, 2026
…uwer

Rollup of 6 pull requests

Successful merges:

 - #165495 (rustdoc: Improve performance by skipping unneeded intermediate JSON serializations)
 - #165523 (remove stability attributes from intrinsics)
 - #165034 (allow configuring rustc_perf's path for out-of-tree uses of rustc_perf)
 - #165373 (use correct span for lifetimes with attributes)
 - #165539 (lint: do not emit unreachable_code on become with diverging callee)
 - #165556 (rustc_config: Replace `Option` with a custom enum for `--jobs` options)

> [!WARNING]
> This rollup conflicts with pending auto build #165548 and may need to be recreated if the pending build succeeds.
rust-bors Bot pushed a commit that referenced this pull request Nov 7, 2026
Rollup merge of #165495 - GuillaumeGomez:skip-intermediate-json-serialization, r=lolbinarycat

rustdoc: Improve performance by skipping unneeded intermediate JSON serializations

Should help with #149915.

r? ghost
@rust-bors
rust-bors Bot merged commit 34d795e into rust-lang:main Nov 7, 2026
15 checks passed
@rustbot rustbot added this to the 1.101.0 milestone Nov 7, 2026
@GuillaumeGomez
GuillaumeGomez deleted the skip-intermediate-json-serialization branch November 7, 2026 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. T-rustdoc-frontend Relevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants