-
Notifications
You must be signed in to change notification settings - Fork 147
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
Introduce Span<T> to StunMessage #603
Comments
This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions. |
As you said, C# 7.2 introduced Though it was tried, but it couldn't be applied sadly because of them. |
This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions. |
Sure. |
Context
After C# 7.2 & System.Memory,
Span<T>
was introduced to reduce heap allocation. It would be great if we can apply it toStunMessage
's parsing process to improve performance.Tips
Stream.ReadAsync(Memory<T>)
andStream.ReadAsync(Span<T>)
, you'll need to branch through a preprocessor. Then this MSDN docs will be helpful.The text was updated successfully, but these errors were encountered: