Open mpartel opened 1 year ago
I love the span APIs but I can't take the netstandard bump. Can you change this PR to multitarget instead?
Done, I think (somewhat new to C# outside of Unity)
Ping. Sorry for piling on more changes afterwards. Should be all done now.
^ or so I thought :man_facepalming:
Note to self: compare this API with https://github.com/dotnet/runtime/issues/1530
.NET 8.0 just got span overloads for List<T>
: InsertRange
, AddRange
, CopyTo
.
https://devblogs.microsoft.com/dotnet/performance-improvements-in-net-8/
Also should include CollectionBuilder
in .NET 8.0.
(ReadOnlySpan<T> span)
and(IEnumerable<T> collection)
would be ambiguous given an array.