Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(498)

Unified Diff: pkg/analysis_server/lib/src/context_directory_manager.dart

Issue 366463002: Change Maps to HashMaps to save in performance, index and generated directories not touched (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analysis_server/lib/src/computer/element.dart ('k') | pkg/analysis_server/lib/src/domain_analysis.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/src/context_directory_manager.dart
diff --git a/pkg/analysis_server/lib/src/context_directory_manager.dart b/pkg/analysis_server/lib/src/context_directory_manager.dart
index 4fdd9f4e6b2d92f022457b047cac6c747f37c1fa..75941f34a020ea2ee1f5c980082ca1ad3d9badf0 100644
--- a/pkg/analysis_server/lib/src/context_directory_manager.dart
+++ b/pkg/analysis_server/lib/src/context_directory_manager.dart
@@ -27,7 +27,7 @@ class _ContextDirectoryInfo {
* Map from full path to the [Source] object, for each source that has been
* added to the context.
*/
- Map<String, Source> sources = new HashMap<String, Source>();
+ HashMap<String, Source> sources = new HashMap<String, Source>();
/**
* Dependencies of the context's package map. If any of these files changes,
@@ -50,7 +50,7 @@ abstract class ContextDirectoryManager {
* [_ContextDirectoryInfo] object for each included directory in the most
* recent successful call to [setRoots].
*/
- Map<Folder, _ContextDirectoryInfo> _currentDirectoryInfo =
+ HashMap<Folder, _ContextDirectoryInfo> _currentDirectoryInfo =
new HashMap<Folder, _ContextDirectoryInfo>();
/**
@@ -235,7 +235,7 @@ abstract class ContextDirectoryManager {
/**
* Called when a new context needs to be created.
*/
- void addContext(Folder folder, Map<String, List<Folder>> packageMap);
+ void addContext(Folder folder, HashMap<String, List<Folder>> packageMap);
/**
* Called when the set of files associated with a context have changed (or
« no previous file with comments | « pkg/analysis_server/lib/src/computer/element.dart ('k') | pkg/analysis_server/lib/src/domain_analysis.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698