Remove StringBuilderCache usage from System.Text.RegularExpressions (dotnet/coreclr...
authorViktor Hofer <viktor.hofer@microsoft.com>
Tue, 19 Jun 2018 21:34:37 +0000 (23:34 +0200)
committerJan Kotas <jkotas@microsoft.com>
Wed, 20 Jun 2018 00:04:30 +0000 (17:04 -0700)
* Remove StringBuilderCache usage

* fixed buffer size, manual reverse copying & local textinfo

* Fast path for not to encode string

* avoid one span slice

* code formatting & bounds check opt

* Avoid string allocation in char class

Signed-off-by: dotnet-bot-corefx-mirror <dotnet-bot@microsoft.com>
Commit migrated from https://github.com/dotnet/coreclr/commit/d429e0291cefdba83248b3d158926df05a76528e

src/libraries/System.Private.CoreLib/src/System/Text/ValueStringBuilder.cs

index 1e33bdb..0448837 100644 (file)
@@ -9,7 +9,7 @@ using System.Runtime.InteropServices;
 
 namespace System.Text
 {
-    internal ref struct ValueStringBuilder
+    internal ref partial struct ValueStringBuilder
     {
         private char[] _arrayToReturnToPool;
         private Span<char> _chars;