Streamline MemoryExtension Trim and Trim(char) by removing calls to TrimStart/End...
authorAhson Khan <ahkha@microsoft.com>
Sat, 22 Sep 2018 00:47:47 +0000 (17:47 -0700)
committerGitHub <noreply@github.com>
Sat, 22 Sep 2018 00:47:47 +0000 (17:47 -0700)
commitca0e785730c1c6fe70dd2732ae6399472828dbbd
tree14a23030c4dc0a08c3ff97edb42c8e3353a2d60e
parentec22d7d3d2c1ef19649d2ee68846a66a996b4e56
Streamline MemoryExtension Trim and Trim(char) by removing calls to TrimStart/End and avoiding unnecessary Slice. (dotnet/coreclr#19959)

* Mark TrimStart and TrimEnd as Aggressively Inline to improve perf

* Remove inlining attribute and streamline Trim

Commit migrated from https://github.com/dotnet/coreclr/commit/1fd5caec53c82d437d7c792d3dbf3e9f6a43e018
src/libraries/System.Private.CoreLib/src/System/MemoryExtensions.cs