Skip to content

Tracking Issue for Parallel Rustc Front-end #113349

Open

Description

@SparrowLii

This is a tracking issue for Parallel Rustc Front-end

This feature will improve compilation speed by parallelizing the process of rustc front end (before the codegen which has been parallelized).

The feature was previously called parallel queries (and its tracking issue can be found here), developed by the former parallel rustc working group. Thanks to their work, developers can currently use parallel rustc by setting parallel_compiler=true in config.toml when building the compiler.

The parallel rustc working group has rebooted (here's the associated MCP), which will make parallel front-end the default option in rustc. Here's the (draft) landing strategy for this feature.

Below is the task list.

Solve the problem of single-thread performance reduction

Optimize multi-threading performance

Enable parallel compilation by default in nightly rustc

Bugs or test failures of parallel rustc

Testing

Documentation

About tracking issues

Tracking issues are used to record the overall progress of implementation.
They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however not meant for large scale discussion, questions, or bug reports about a feature.
Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.

Activity

  1. added
    C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFC
    on Jul 5, 2023
  2. the8472 commented on Jul 10, 2023

    @the8472
    Member

    The core crate might be a good benchmark for this. You can immediately build it after rustc and it spends about 10% of its walltime in tokenization/parsing/macro-expansion and ~80% in the query parts. The fraction of codegen is small in comparison.

  3. tigerfsh commented on Nov 7, 2024

    @tigerfsh

    It's been a long time since there was any update. Has all work been paused?

  4. SparrowLii commented on Nov 7, 2024

    @SparrowLii
    MemberAuthor

    Them main work now is to fix deadlock and ice bugs in the issue list

    I recently submitted a PR for an enhanced compiler test to reproduce the issue and successfully located three deadlock bugs. Unfortunately, it takes timeto figure out the cause of these bugs, which is what is making the updates slow.

    I expect it will take another 1 to 2 months to fix the remaining bugs, after which the stabilization will begin.

  5. added a commit that references this issue on Nov 12, 2024
  6. safinaskar commented on Feb 3, 2025

    @safinaskar
    Contributor

    @SparrowLii

    developers can currently use parallel rustc by setting parallel_compiler=true in config.toml when building the compiler.

    As well as I understand there is no such option anymore. Please, update post

  7. added 2 commits that reference this issue on Feb 5, 2025
  8. added 2 commits that reference this issue on Feb 9, 2025
  9. 14 remaining items

  10. added a commit that references this issue on Jul 1, 2025
  11. added a commit that references this issue on Jul 7, 2025
  12. added 4 commits that reference this issue on Aug 8, 2025
  13. petrochenkov commented on Jul 8, 2026

    @petrochenkov
    Contributor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-parallel-compilerArea: parallel compilerC-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFC

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions