From: Viktor Hofer Date: Tue, 19 Jun 2018 21:34:37 +0000 (+0200) Subject: Remove StringBuilderCache usage from System.Text.RegularExpressions (dotnet/coreclr... X-Git-Tag: submit/tizen/20210909.063632~11030^2~4561 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8cc40d7404d4dae93fcfa5657d7915bea529bc11;p=platform%2Fupstream%2Fdotnet%2Fruntime.git 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 --- 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;