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.
Description
Summary
Use
ConfigureScopeoverload that receives "state" to avoid Closure allocations where possible.Remarks
In #4244, we added a
ConfigureScopeoverload 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.