Closed Rutherther closed 1 year ago
And with allocation:
before:
Method | Mean | Error | StdDev | Median | Gen0 | Allocated |
---|---|---|---|---|---|---|
NosSmooth_In_Serialize | 4,501.4 ns | 89.18 ns | 215.37 ns | 4,475.0 ns | 0.0305 | 2608 B |
NosSmooth_Fc_Serialize | 3,101.6 ns | 61.24 ns | 62.89 ns | 3,118.7 ns | 0.0229 | 1984 B |
after: | Method | Mean | Error | StdDev | Gen0 | Allocated |
---|---|---|---|---|---|---|
NosSmooth_In_Serialize | 987.5 ns | 11.92 ns | 10.56 ns | 0.0076 | 648 B | |
NosSmooth_Fc_Serialize | 862.3 ns | 17.25 ns | 49.50 ns | 0.0067 | 576 B |
Before (serialize used StringBuilder, allocations)
After (serialize uses Span and stackalloc)