Improve Ascii (and Utf8) encoding (#85266)
authorDaniel Svensson <daniel.svensson@hotmail.se>
Fri, 12 May 2023 10:43:40 +0000 (12:43 +0200)
committerGitHub <noreply@github.com>
Fri, 12 May 2023 10:43:40 +0000 (12:43 +0200)
commitf1819bd78f0e7506b8c3c7f90b47aa41b0e22c6f
treecfbdfa457bf2778b6a5b5163a5fbf62027671a60
parent0c423af22f5cf48a9d80f5ae28b8b74de1bb41b0
Improve Ascii (and Utf8) encoding (#85266)

* Improve writing of lower vector part in ascii convertion

* from 10 /17 to 1 instruction for 64/32 bit x86

* Add [MethodImpl(MethodImplOptions.AggressiveInlining)] to NarrowUtf16ToAscii_Intrinsified

* rewrite StoreLower without Sse2.StoreScalar

* move helper to Vector128 and call in case conversion

* remove unused helpers
src/libraries/System.Private.CoreLib/src/System/Runtime/Intrinsics/Vector128.cs
src/libraries/System.Private.CoreLib/src/System/Text/Ascii.CaseConversion.cs
src/libraries/System.Private.CoreLib/src/System/Text/Ascii.Utility.cs