Skip to content
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

Store rlink data in opaque binary format on disk #93681

Merged
merged 1 commit into from
Feb 9, 2022

Conversation

Mark-Simulacrum
Copy link
Member

This removes one of the only uses of JSON decoding (to Rust structs) from the compiler, and fixes the FIXME comment. It's not clear to me what the reason for using JSON here originally was, and from what I can tell nothing outside of rustc expects to read the emitted information, so it seems like a reasonable step to move it to the metadata-encoding format (rustc_serialize::opaque).

Mostly intended as a FIXME fix, though potentially a stepping stone to dropping the support for Decodable to be used to decode JSON entirely (allowing for better/faster APIs on the Decoder trait).

cc #64191

@rustbot rustbot added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Feb 5, 2022
@rust-highfive
Copy link
Collaborator

r? @davidtwco

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Feb 5, 2022
@bjorn3
Copy link
Member

bjorn3 commented Feb 6, 2022

It's not clear to me what the reason for using JSON here originally was

Not sure.

and from what I can tell nothing outside of rustc expects to read the emitted information

It isn't meant to be read outside of rustc.

@davidtwco
Copy link
Member

@bors r=davidtwco,bjorn3

@bors
Copy link
Contributor

bors commented Feb 8, 2022

📌 Commit a1c261c has been approved by davidtwco,bjorn3

@bors bors 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 Feb 8, 2022
@joshtriplett
Copy link
Member

@bors rollup=never

Seems like it might have performance implications (hopefully positive ones).

@Mark-Simulacrum
Copy link
Member Author

rlink isn't currently used by cargo afaik, which is why I didn't queue up perf, but it's possible it'll affect pgo or so.

@bors
Copy link
Contributor

bors commented Feb 9, 2022

⌛ Testing commit a1c261c with merge b7cd0f7...

@bors
Copy link
Contributor

bors commented Feb 9, 2022

☀️ Test successful - checks-actions
Approved by: davidtwco,bjorn3
Pushing b7cd0f7 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Feb 9, 2022
@bors bors merged commit b7cd0f7 into rust-lang:master Feb 9, 2022
@rustbot rustbot added this to the 1.60.0 milestone Feb 9, 2022
@rust-timer
Copy link
Collaborator

Finished benchmarking commit (b7cd0f7): comparison url.

Summary: This benchmark run did not return any relevant results.

If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf.

@rustbot label: -perf-regression

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants