Uh oh!
There was an error while loading. Please reload this page.
[System.Text.Json] Move inline throw statements to ThrowHelper - #61746
Conversation
ghost
commented
Nov 17, 2021
Tagging subscribers to this area: @dotnet/area-system-text-json Issue DetailsReplaces a number of occurrences of While .NET 6 codegen around exception throwing appears to have improved, I'm still seeing modest performance improvements in microbenchmarks, particularly around the Fix #59378.
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
eiriktsarpalis
commented
Nov 18, 2021
FWIW here are results comparing the BenchmarkDotNet=v0.13.1.1616-nightly, OS=Windows 10.0.22000
Intel Core i9-10900X CPU 3.70GHz, 1 CPU, 20 logical and 10 physical cores
.NET SDK=7.0.100-alpha.1.21566.20
[Host] : .NET 6.0.0 (6.0.21.52210), X64 RyuJIT
Job-FUQUAC : .NET 7.0.0 (42.42.42.42424), X64 RyuJIT
Job-YDOZOU : .NET 7.0.0 (42.42.42.42424), X64 RyuJIT
PowerPlanMode=00000000-0000-0000-0000-000000000000 Arguments=/p:DebugType=portable,-bl:benchmarkdotnet.binlog IterationTime=250.0000 ms MaxIterationCount=20 MinIterationCount=15 WarmupCount=1
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
aae0d90 to
791ec4eCompare
Replaces a number of occurrences of
throw ThrowHelper.GetException();statements found in System.Text.Json withThrowHelper.ThrowException();method calls.While .NET 6 codegen around exception throwing appears to have improved, I'm still seeing modest performance improvements in microbenchmarks, particularly around the
Utf8JsonReader.Get*()methods, which are relatively small methods that inlinethrowstatements.Fix#59378.