Skip to content

Slow compilation #68926

Open
Open
@dragostis

Description

@dragostis

Using nested tuples in this example leads to painfully long compile times:

use rayon::prelude::*;

fn main() {
    let vec0 = vec![];
    let vec1 = vec![];
    let vec2 = vec![];
    let vec3 = vec![];
    let vec4 = vec![];
    let vec5 = vec![];
    let vec6 = vec![];
    let vec7 = vec![];
    
    (vec0,
    (vec1,
    (vec2,
    (vec3,
    (vec4,
    (vec5,
    (vec6,
    (vec7)))))))).par_extend((1u32..10).into_par_iter().map(|n| (n, (n, (n, (n, (n, (n, (n, n)))))))));
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-optimizationCategory: An issue highlighting optimization opportunities or PRs implementing suchE-needs-mcveCall for participation: This issue has a repro, but needs a Minimal Complete and Verifiable ExampleI-compiletimeIssue: Problems and improvements with respect to compile times.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions