3 ms·
Is it just me, or does this have a case of false advertising? One of the biggest sources of allocation is lambda captures, like when you write something like t
by torginus 1y ago
Is it just me, or does this have a case of false advertising?
One of the biggest sources of allocation is lambda captures, like when you write something like this
var myPerson = people.First(x=>x.Name==myPersonName);
in this case, a phantom object is allocated, that captures the myPersonName variable, for which a delegate is allocated, which is then passed to the First() method, making the number of allocations per call a minimum of 2. I don't see ZLinq doing anything about this.