Skip to content

Split exported_symbols for generic and non-generic symbols #143013

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bjorn3
Copy link
Member

@bjorn3 bjorn3 commented Jun 25, 2025

This reduces metadata decoder overhead during the monomorphization collector.

This may help with incremental builds for Zed.

@rustbot
Copy link
Collaborator

rustbot commented Jun 25, 2025

r? @lcnr

rustbot has assigned @lcnr.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Jun 25, 2025
@rustbot
Copy link
Collaborator

rustbot commented Jun 25, 2025

Some changes occurred in compiler/rustc_codegen_ssa

cc @WaffleLapkin

@@ -164,7 +164,8 @@ fn is_reachable_non_generic_provider_extern(tcx: TyCtxt<'_>, def_id: DefId) -> b
tcx.reachable_non_generics(def_id.krate).contains_key(&def_id)
}

fn exported_symbols_provider_local<'tcx>(
// FIXME maybe split into two functions
fn exported_symbols_provider_local<'tcx, const GENERIC: bool>(
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be done before merging.

@bjorn3
Copy link
Member Author

bjorn3 commented Jun 25, 2025

@bors try @rust-timer queue

@rust-timer
Copy link
Collaborator

Awaiting bors try build completion.

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

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Jun 25, 2025
@bors
Copy link
Collaborator

bors commented Jun 25, 2025

⌛ Trying commit 5e2d5cf with merge f72ce86...

bors added a commit that referenced this pull request Jun 25, 2025
Split exported_symbols for generic and non-generic symbols

This reduces metadata decoder overhead during the monomorphization collector.

This may help with incremental builds for Zed.
// to block export of generics from dylibs, but we must fix
// rust-lang/rust#65890 before we can do that robustly.

syms
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Accidentally committed this as part of this PR, but preventing export of generics from dylibs doesn't seem to be necessary anymore.

@bjorn3 bjorn3 force-pushed the split_exported_symbols branch from 5e2d5cf to 0fa3ea6 Compare June 25, 2025 14:36
@rustbot
Copy link
Collaborator

rustbot commented Jun 25, 2025

The Miri subtree was changed

cc @rust-lang/miri

@bjorn3
Copy link
Member Author

bjorn3 commented Jun 25, 2025

@bors2 try @rust-timer queue

@rust-timer
Copy link
Collaborator

Awaiting bors try build completion.

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

@rust-bors
Copy link

rust-bors bot commented Jun 25, 2025

⌛ Trying commit 0fa3ea6 with merge 536e35d

To cancel the try build, run the command @bors2 try cancel.

rust-bors bot added a commit that referenced this pull request Jun 25, 2025
Split exported_symbols for generic and non-generic symbols

This reduces metadata decoder overhead during the monomorphization collector.

This may help with incremental builds for Zed.
@bjorn3 bjorn3 force-pushed the split_exported_symbols branch from 0fa3ea6 to f859eea Compare June 25, 2025 14:53
@bjorn3
Copy link
Member Author

bjorn3 commented Jun 25, 2025

@bors2 try cancel
@bors2 try

@rust-bors
Copy link

rust-bors bot commented Jun 25, 2025

Try build cancelled. Cancelled workflows:

@rust-bors
Copy link

rust-bors bot commented Jun 25, 2025

⌛ Trying commit f859eea with merge e9337fc

To cancel the try build, run the command @bors2 try cancel.

rust-bors bot added a commit that referenced this pull request Jun 25, 2025
Split exported_symbols for generic and non-generic symbols

This reduces metadata decoder overhead during the monomorphization collector.

This may help with incremental builds for Zed.
@rust-log-analyzer

This comment has been minimized.

@rust-bors
Copy link

rust-bors bot commented Jun 25, 2025

💔 Test failed

@bjorn3 bjorn3 force-pushed the split_exported_symbols branch from f859eea to aa10411 Compare June 25, 2025 15:36
@bjorn3
Copy link
Member Author

bjorn3 commented Jun 25, 2025

@bors try @rust-timer queue

@rust-timer
Copy link
Collaborator

Awaiting bors try build completion.

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

bors added a commit that referenced this pull request Jun 25, 2025
Split exported_symbols for generic and non-generic symbols

This reduces metadata decoder overhead during the monomorphization collector.

This may help with incremental builds for Zed.
@bors
Copy link
Collaborator

bors commented Jun 25, 2025

⌛ Trying commit aa10411 with merge f4a3654...

@rust-log-analyzer

This comment has been minimized.

@bors
Copy link
Collaborator

bors commented Jun 25, 2025

💔 Test failed - checks-actions

@bors bors added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jun 25, 2025
This reduces metadata decoder overhead during the monomorphization collector.
@bjorn3 bjorn3 force-pushed the split_exported_symbols branch from aa10411 to 91f653b Compare June 26, 2025 10:53
@bjorn3
Copy link
Member Author

bjorn3 commented Jun 26, 2025

@bors2 try @rust-timer queue

@rust-timer
Copy link
Collaborator

Awaiting bors try build completion.

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

@rust-bors
Copy link

rust-bors bot commented Jun 26, 2025

⌛ Trying commit 91f653b with merge 2a26fdd

To cancel the try build, run the command @bors2 try cancel.

rust-bors bot added a commit that referenced this pull request Jun 26, 2025
Split exported_symbols for generic and non-generic symbols

This reduces metadata decoder overhead during the monomorphization collector.

This may help with incremental builds for Zed.
@rust-bors
Copy link

rust-bors bot commented Jun 26, 2025

☀️ Try build successful (CI)
Build commit: 2a26fdd (2a26fdd4b88032152a5497a8b20c6ce91002c8c1, parent: 1e838527f18cd24c81547ce6fbef6815032a80a7)

@rust-timer
Copy link
Collaborator

Queued 2a26fdd with parent 1e83852, future comparison URL.
There are currently 8 preceding artifacts in the queue.
It will probably take at least ~11.3 hours until the benchmark run finishes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. S-waiting-on-perf Status: Waiting on a perf run to be completed. 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.

6 participants