Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork754
.NET 8 Update(6): CollectionsMarshal for ListFormatter#1732
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
AArnott left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Wow. Did you happen to measure perf impact of this change?
pCYSl5EDgo commentedJan 13, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
The below benchmarks were done without Dynamic PGO. List<byte>
List<Matrix4x4>
|
pCYSl5EDgo commentedJan 13, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
For smaller value types,
Considering the above facts, let's revert the change for |
List<T>for loop is slower thanSpan<T>for loop.CollectionsMarshal.AsSpanconvertsList<T>toSpan<T>CollectionsMarshal.SetCountcan be used for deserialize.