Improve DateTime{Offset}.ParseExact{Multiple} performance for RFC1123 ("r") (dotnet...
authorStephen Toub <stoub@microsoft.com>
Thu, 5 Jul 2018 01:38:05 +0000 (21:38 -0400)
committerGitHub <noreply@github.com>
Thu, 5 Jul 2018 01:38:05 +0000 (21:38 -0400)
commitd49a76c364bccc10a95f11b233f58a5d2c5667ab
tree7ada4faba9c88a652c18aa102482cfe587dd3170
parent0483adf1f982458b72f3f1c2905aae4b87bf6d34
Improve DateTime{Offset}.ParseExact{Multiple} performance for RFC1123 ("r") (dotnet/coreclr#18771)

* Improve DateTime{Offset}.ParseExact{Multiple} performance for RFC1123 ("r")

Significantly improves the performance by porting and adapting the Utf8Parser code from corefx.  This optimizes for the (default) case of a DateTimeStyles.None; specifying any other style falls back to the normal parsing support, as that requires handling things such as arbitrary whitespace anywhere in the string.

* Address PR feedback

Commit migrated from https://github.com/dotnet/coreclr/commit/9f9a37d04460559c3f91927f1297c8195411a0a3
src/libraries/System.Private.CoreLib/src/System/Globalization/DateTimeParse.cs