-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
ArrayRange #27424
Comments
Do |
ArrayRange is less complex than |
Why is that an issue? |
If we use |
In that case, do you have a benchmark that shows a realistic scenario (i.e. not a microbenchmark), where using In other words: if you want to introduce a new API whose sole reason for existing is improved performance, I think you should first show that it actually improves performance. |
I don't think |
In most cases ArrayPool returns an array that its length is bigger than the requested length.
So we usually use ArraySegment but its Offset field is unneeded. So having ArrayRange will be nice.
It already implemented here: https://github.com/aspnet/Blazor/blob/master/src/Microsoft.AspNetCore.Blazor/RenderTree/ArrayRange.cs
The text was updated successfully, but these errors were encountered: