From 8cc40d7404d4dae93fcfa5657d7915bea529bc11 Mon Sep 17 00:00:00 2001 From: Viktor Hofer Date: Tue, 19 Jun 2018 23:34:37 +0200 Subject: [PATCH] Remove StringBuilderCache usage from System.Text.RegularExpressions (dotnet/coreclr#30474) * 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 Commit migrated from https://github.com/dotnet/coreclr/commit/d429e0291cefdba83248b3d158926df05a76528e --- .../System.Private.CoreLib/src/System/Text/ValueStringBuilder.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libraries/System.Private.CoreLib/src/System/Text/ValueStringBuilder.cs b/src/libraries/System.Private.CoreLib/src/System/Text/ValueStringBuilder.cs index 1e33bdb..0448837 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Text/ValueStringBuilder.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Text/ValueStringBuilder.cs @@ -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 _chars; -- 2.7.4