-
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
Performance regression in JsonSerializer.Deserialize(Stream) for very small types like Int32 #59103
Comments
Tagging subscribers to this area: @eiriktsarpalis, @layomia Issue DetailsPlease keep in mind that this particular scenario (deserializing a single integer from a stream) is very niche and we are most likely going to accept it. But since I don't own this area I would prefer the owners to make the call (cc @eiriktsarpalis, as it has been most likely caused by #50778) System.Text.Json.Serialization.Tests.ReadJson.DeserializeFromStream
Repro: git clone https://github.com/dotnet/performance.git
py .\performance\scripts\benchmarks_ci.py -f net5.0 net6.0 --filter "System.Text.Json.Serialization.Tests.ReadJson<Int32>.DeserializeFromStream"
|
As discussed, a constant-factor regression in async serialization/deserialization is expected due to the infrastructure now incorporating support for |
Please keep in mind that this particular scenario (deserializing a single integer from a stream) is very niche and we are most likely going to accept it. But since I don't own this area I would prefer the owners to make the call (cc @eiriktsarpalis, as it has been most likely caused by #50778)
System.Text.Json.Serialization.Tests.ReadJson.DeserializeFromStream
Repro:
git clone https://github.com/dotnet/performance.git py .\performance\scripts\benchmarks_ci.py -f net5.0 net6.0 --filter "System.Text.Json.Serialization.Tests.ReadJson<Int32>.DeserializeFromStream"
https://pvscmdupload.blob.core.windows.net/reports/allTestHistory%2frefs%2fheads%2fmain_x64_Windows%2010.0.18362%2fSystem.Text.Json.Serialization.Tests.ReadJson(Int32).DeserializeFromStream.html
The text was updated successfully, but these errors were encountered: