-
-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add bulk add/remove/read methods using spans. #8
base: main
Are you sure you want to change the base?
Conversation
This bumps the minimum .NET requirement to .NET Standard 2.1.
I'm hesitant to add CopyFromBackToSpan because it's not clear if it would be intuitive for it to copy to the end or the beginning of the destination span.
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 🤦♂️ |
Note to self: compare this API with dotnet/runtime#1530 |
.NET 8.0 just got span overloads for https://devblogs.microsoft.com/dotnet/performance-improvements-in-net-8/ |
Also should include |
(ReadOnlySpan<T> span)
and(IEnumerable<T> collection)
would be ambiguous given an array.