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-07-12 18:59:19 +0300
committerMarius Ungureanu <marius.ungureanu@xamarin.com>2016-07-12 18:59:19 +0300
commitf2eb33d9bb3a89332de02aa3e087d73fa67ccd88 (patch)
tree8fec77312d04b6b1cb69441dd4cb3d764851a024 /main/src/core/MonoDevelop.Ide/MonoDevelop.Components.MainToolbar/FileSearchCategory.cs
parent908c1fc8b10cff9aba15d4013642a5d140cfc502 (diff)
[Ide] Preallocate FileSearchCategory unique set.
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Components.MainToolbar/FileSearchCategory.cs')
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Components.MainToolbar/FileSearchCategory.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.MainToolbar/FileSearchCategory.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.MainToolbar/FileSearchCategory.cs
index b5204a2e27..fdb92016d1 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.MainToolbar/FileSearchCategory.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.MainToolbar/FileSearchCategory.cs
@@ -112,7 +112,7 @@ namespace MonoDevelop.Components.MainToolbar
files = allFilesCache = allFilesCache ?? GenerateAllFiles ();
}
var matcher = StringMatcher.GetMatcher (pattern.Pattern, false);
- var savedMatches = new Dictionary<string, MatchResult> ();
+ var savedMatches = new Dictionary<string, MatchResult> (files.Count * 2);
foreach (var file in files) {
if (token.IsCancellationRequested)
break;