Skip to content

FSC: Consider enabling --parallelreferenceresolution by default #15428

Open

Description

@safesparrow

#13521 introduces an FSC flag --parallelreferenceresolution that makes dll imports run in parallel.
I ran some tests and it gave 5% relative/600ms absolute speedup of single-project dotnet build for projects with lots of NuGet&project references.
Would it be possible to enable this feature by default?

If this were to be an opt-out feature, what would be the opt-out mechanism?

I believe parallel parsing is on by default and the only way to turn it off for end-users is via the OtherFlags MSBuild property.

Activity

  1. added this to the Backlog milestone on Jun 17, 2023
  2. vzarytovskii commented on Jun 17, 2023

    @vzarytovskii
    Member

    It should probably work the same way optimize works, with +/- suffix, where + is default for lang version preview (which will become 8).

  3. safesparrow commented on Jun 17, 2023

    @safesparrow
    ContributorAuthor

    where + is default for lang version preview (which will become 8).

    Why would compilation parallelisation defaults be based on project's lang version? Do we do that for any other compilation performance flags?

    Or do you mean version of SDK?

  4. vzarytovskii commented on Jun 17, 2023

    @vzarytovskii
    Member

    where + is default for lang version preview (which will become 8).

    Why would compilation parallelisation defaults be based on project's lang version? Do we do that for any other compilation performance flags?

    Or do you mean version of SDK?

    Language version is the only one we can tie to, realistically.
    My reasoning for having it on starting from 8 is to tie it to the new release, so we won't have any surprises and corner cases in sdk 7.x, since it will be much harder to backport fixes there going forward.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions