How we achieved 5X faster pipeline execution by removing closure allocations
Particular Software
SEPTEMBER 27, 2022
Closures can occur anywhere we have lambdas (i.e. Action or Func delegates) being invoked that access state that exists outside the lambda. Starting with.NET 5, we can mark the lambda as static with C# 9. <>9__0_1 ?? (<>c.<>9__0_1 <>9__0_1 = new Action(<>c.<>9.<Main>b__0_1)));
Let's personalize your content