Skip to content

Refactorings for enabling parallel compilation (part 2) #1266

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

Merged
merged 15 commits into from
Aug 19, 2022

Conversation

bjorn3
Copy link
Member

@bjorn3 bjorn3 commented Aug 18, 2022

This PR contains a bunch of refactorings to remove dependencies on TyCtxt and Session for various functions that will in the future be called on background threads as those types are only available on the main thread. Most of this PR concerns the debuginfo generation code, but there are also a couple of refactorings to other code.

Part of #652

See #1264 for the previous PR in this series and #1271 for the next PR.

@bjorn3 bjorn3 added C-enhancement Category: An issue proposing an enhancement or a PR with one. compile-time How fast is the code compiled C-cleanup Category: PRs that clean code up or issues documenting cleanup. labels Aug 18, 2022
@bjorn3
Copy link
Member Author

bjorn3 commented Aug 18, 2022

Before merging this I'm going to benchmark it first as I'm not entirely sure about the perf implications of 6421427.

@bjorn3
Copy link
Member Author

bjorn3 commented Aug 19, 2022

Doesn't seem to have changed much.

@bjorn3 bjorn3 merged commit 7dc8f38 into master Aug 19, 2022
@bjorn3 bjorn3 deleted the parallel_comp_refactor2 branch August 19, 2022 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-cleanup Category: PRs that clean code up or issues documenting cleanup. C-enhancement Category: An issue proposing an enhancement or a PR with one. compile-time How fast is the code compiled
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant