Cache current_dll_path output by bjorn3 · Pull Request #138783 · rust-lang/rust (original) (raw)

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 andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation5 Commits1 Checks6 Files changed

Conversation

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

bjorn3

Computing the current dll path is somewhat expensive relative to other work when compiling fn main() {} as dladdr needs to iterate over the symbol table of librustc_driver.so until it finds a match.

@rustbot

r? @SparrowLii

rustbot has assigned @SparrowLii.
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

Mar 21, 2025

@rust-log-analyzer

This comment has been minimized.

@bjorn3

Computing the current dll path is somewhat expensive relative to other work when compiling fn main() {} as dladdr needs to iterate over the symbol table of librustc_driver.so until it finds a match.

@lqd

I don't think we'd need to check rustc-perf here, and if not, this makes sense and looks good, r=me.

@bjorn3

@bors

📌 Commit 521d0c4 has been approved by lqd

It is now in the queue for this repository.

@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

Mar 21, 2025

bors added a commit to rust-lang-ci/rust that referenced this pull request

Mar 24, 2025

@bors

Rollup of 10 pull requests

Successful merges:

Failed merges:

r? @ghost @rustbot modify labels: rollup

rust-timer added a commit to rust-lang-ci/rust that referenced this pull request

Mar 24, 2025

@rust-timer

Rollup merge of rust-lang#138783 - bjorn3:cache_current_dll_path, r=lqd

Cache current_dll_path output

Computing the current dll path is somewhat expensive relative to other work when compiling fn main() {} as dladdr needs to iterate over the symbol table of librustc_driver.so until it finds a match.

@bjorn3 bjorn3 deleted the cache_current_dll_path branch

March 24, 2025 10:16

Labels

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.