-
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
Regressions in System.Text.Json.Serialization.Tests.ReadJson<Hashtable> #66341
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
Introduced in #65748. @eiriktsarpalis |
Tagging subscribers to this area: @dotnet/area-system-text-json Issue DetailsRun Information
Regressions in System.Text.Json.Serialization.Tests.ReadJson<Hashtable>
Reprogit clone https://github.com/dotnet/performance.git
python3 .\performance\scripts\benchmarks_ci.py -f net6.0 --filter 'System.Text.Json.Serialization.Tests.ReadJson<Hashtable>*' PayloadsHistogramSystem.Text.Json.Serialization.Tests.ReadJson<Hashtable>.DeserializeFromUtf8Bytes
Description of detection logic
DocsProfiling workflow for dotnet/runtime repository
|
Thanks. This is likely an expected side-effect of the refactorings related to #63747. I'll see if I can negate the loss in future refactorings but it's likely a regression we'd want to take. In any case this should specifically concern deserialization of collections containing polymorphic elements which is not a particularly common scenario. |
@eiriktsarpalis can you point to the code changes that caused the regression please and what is \ is not affected. For example does this affect all |
The performance regression is directly related to the fact that This does not impact polymorphic serialization for boxed objects of depth 1, since we can introspect the runtime type of the serialized value and dispatch to the relevant value converter ahead of performing any |
Run Information
Regressions in System.Text.Json.Serialization.Tests.ReadJson<Hashtable>
Test Report
Repro
Payloads
Baseline
Compare
Histogram
System.Text.Json.Serialization.Tests.ReadJson<Hashtable>.DeserializeFromUtf8Bytes
Description of detection logic
Docs
Profiling workflow for dotnet/runtime repository
Benchmarking workflow for dotnet/runtime repository
The text was updated successfully, but these errors were encountered: