Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Ungureanu <marius.ungureanu@xamarin.com>2016-09-24 18:02:58 +0300
committerMarius Ungureanu <marius.ungureanu@xamarin.com>2016-09-25 03:31:59 +0300
commitae7f81f763faeef397c7ce83584233196d1a5393 (patch)
tree3df43efe6bda0f02440b93a2c13b2940b7e9c442 /main/tests/UnitTests/UnitTests.csproj
parent52e1ee091e250d6d65507e92260da1bbec710bac (diff)
[Core] Improve MSBuildProjectService.EscapeString performance
This improves the allocations and CPU time of EscapeString. On a benchmark of 1000000 runs on the string "%a%b%c%d%", we have the old variant using 2473ms and the new variant 1381ms. The allocations also improved, where the old variant would allocate 441MB in total, and the new variant would allocate 188MB.
Diffstat (limited to 'main/tests/UnitTests/UnitTests.csproj')
-rw-r--r--main/tests/UnitTests/UnitTests.csproj1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/tests/UnitTests/UnitTests.csproj b/main/tests/UnitTests/UnitTests.csproj
index 547eb14569..50e16e4c8a 100644
--- a/main/tests/UnitTests/UnitTests.csproj
+++ b/main/tests/UnitTests/UnitTests.csproj
@@ -296,6 +296,7 @@
<Compile Include="MonoDevelop.Core\CoreExtensionsTests.cs" />
<Compile Include="MonoDevelop.CSharpBinding\CSharpProjectPropertiesTests.cs" />
<Compile Include="MonoDevelop.Ide.Editor\DiffTests.cs" />
+ <Compile Include="MonoDevelop.Projects\MSBuildProjectServiceTests.cs" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Import Project="..\..\md.targets" />