Skip to content

perf: use ConfigureScope overload to avoid Closure allocations where possible #5219

@Flash0ver

Description

@Flash0ver

Description

Summary

Use ConfigureScope overload that receives "state" to avoid Closure allocations where possible.

Remarks

In #4244, we added a ConfigureScope overload that takes state in order to avoid Closure-allocations.

After #5039 (see #5039 (comment)), there is another location to avoid the Closure.

After a quick search, I believe there are 2 or 3 additional opportunities to avoid the Closure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions