Move to RefLinq instead of Linq
WhiteBlackGoose opened this issue · 2 comments
WhiteBlackGoose commented
For collections which are arrays or IReadOnlyList we can now move to RefLinq from HonkPerf.NET when we need to compute inplace.
DavidCano98 commented
Hey @WhiteBlackGoose , could you please assing this issue to me? Would love to work on it.
WhiteBlackGoose commented
@DavidCano98 , hi, assigned.
A recommendation btw. Please, before working on it, run benchmarks locally and record the results to make sure that it improves it.
Also, be very cautious with HonkPerf.NET
. It's not 1:1 replacement for LINQ, because it uses value types under the hood, so its user shouldn't copy sequences (unlike Linq's IEnumerable<T>
) or pass anywhere by value.
Thanks!