Skip to content
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

[Feature Request]: Use Span<> for all foreach loops #372

Open
Wagnerp opened this issue Nov 27, 2022 · 1 comment
Open

[Feature Request]: Use Span<> for all foreach loops #372

Wagnerp opened this issue Nov 27, 2022 · 1 comment
Labels
enhancement New feature or request new feature A new feature has been requested. suggestion A suggestion has been requested.

Comments

@Wagnerp
Copy link
Contributor

Wagnerp commented Nov 27, 2022

As part of .NET 7, it is recommended to use Span<> instead of foreach, as it's generally faster.

https://www.youtube.com/watch?v=cwBrWn4m9y8

@Wagnerp Wagnerp added enhancement New feature or request new feature A new feature has been requested. suggestion A suggestion has been requested. labels Nov 27, 2022
@giduac
Copy link

giduac commented Nov 27, 2022

My god this guy is talking in hurry... :)
https://learn.microsoft.com/en-us/archive/msdn-magazine/2018/january/csharp-all-about-span-exploring-a-new-net-mainstay

Found some more info on this (a discussion):
dotnet/csharplang#1085

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request new feature A new feature has been requested. suggestion A suggestion has been requested.
Projects
None yet
Development

No branches or pull requests

2 participants