Skip to content

Major performance degradation introduced with 10.3.3 (UTF8 char fetch) #1272

Description

@pl752

Hello, @cincuranet , I was fiddling with @fdcastel `s PR (#1203) when I have noticed that between used in his PR nuget 10.3.1 and master there was an update (10.3.3) which significantly affected performance and allocation rates when woring with UTF8 strings.

MethodJobBuildConfigurationDataTypeMeanErrorStdDevRatioRatioSDGen0Gen1AllocatedAlloc Ratio
FetchNuGet10010.3.2CHAR((...) UTF8 [28]1.007 s0.0261 s0.0770 s1.010.1146000.00007000.0000369.79 MB1.00
FetchCore10010.3.3CHAR((...) UTF8 [28]2.131 s0.0420 s0.0810 s2.130.18543000.0000112000.00004339.37 MB11.73

Interesting fact is that the update was fixing an issue around the same place where one of my old PRs (#1252) was implementing optimizations directly related to affected methods. Related issue resulting in problematic fix bd0db88: #1213

Table relaed to my PR vs 10.3.1

MethodJobBuildConfigurationDataTypeMeanErrorStdDevRatioRatioSDGen0Gen1AllocatedAlloc Ratio
FetchNuGet100ReleaseNuGetCHAR((...) UTF8 [28]1.066 s0.0398 s0.1175 s1.010.1646000.00007000.0000369.79 MB1.00
FetchCore100ReleaseCHAR((...) UTF8 [28]1.161 s0.0232 s0.0683 s1.100.1446000.00007000.0000369.79 MB1.00

Can you, please, review my PR changes and check if they are correct (aka they won't reintroduce the fixed issue, tests are passing successfully meanwhile)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions