Skip to content

IIncrementalGenerator: Use Combine efficiently #6581

Open

Description

Describe the problem you are trying to solve

When combining IIncrementalValuesProvider<T> with two or more IIncrementalValueProvider<T> instances, the manner in which the values are combined can impact cache sizes.

Describe suggestions on how to achieve the rule

Identify cases where the following pattern is used:

values.Combine(value1).Combine(value2)

Suggest to rewrite as:

values.Combine(value1.Combine(value2))

Additional context

e9db5f6

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

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions