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-08 14:59:51 +0300
committerMarius Ungureanu <marius.ungureanu@xamarin.com>2016-09-23 15:40:14 +0300
commitb3d66212213f630e510b14cde60e472980e00354 (patch)
tree2a7aec129a9b2e35df9a8b299c9a82f3a6242f32 /main/src/core/MonoDevelop.Core/MonoDevelop.Projects.MD1
parent1174629d744b8a6615b8761a0af64a3a82a1e19e (diff)
[Perf] Add an evaluation cache for an msbuild evaluation context.
This reduces the amount of time spent in evaluating Exists conditionals in net_4_x.sln from 22s to 13s, also reducing memory allocations from 305MB to 286MB (the total memory allocated by IO calls by 40MB, but the overhead of the dictioanry adds up 20MB)
Diffstat (limited to 'main/src/core/MonoDevelop.Core/MonoDevelop.Projects.MD1')
-rw-r--r--main/src/core/MonoDevelop.Core/MonoDevelop.Projects.MD1/MD1DotNetProjectHandler.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.MD1/MD1DotNetProjectHandler.cs b/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.MD1/MD1DotNetProjectHandler.cs
index f9c1f338af..989a06a787 100644
--- a/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.MD1/MD1DotNetProjectHandler.cs
+++ b/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.MD1/MD1DotNetProjectHandler.cs
@@ -436,5 +436,7 @@ namespace MonoDevelop.Projects.MD1
string val = value.Replace ("$(Configuration)", config.Name).Replace ("$(Platform)", config.Platform);
return val;
}
+
+ public Dictionary<string, string> EvaluationCache { get; } = new Dictionary<string, string> ();
}
}