Move us to HashSet to avoid the overhead of tracking the order

This commit is contained in:
Ian Hickson
2016-01-19 09:31:57 -08:00
parent b9716b84db
commit 5494323db9
13 changed files with 39 additions and 31 deletions

View File

@@ -3,6 +3,7 @@
// found in the LICENSE file.
import 'dart:async';
import 'dart:collection';
import 'dart:convert';
import 'dart:io';
@@ -31,7 +32,7 @@ class AnalyzeCommand extends FlutterCommand {
@override
Future<int> runInProject() async {
Stopwatch stopwatch = new Stopwatch()..start();
Set<String> pubSpecDirectories = new Set<String>();
Set<String> pubSpecDirectories = new HashSet<String>();
List<String> dartFiles = argResults.rest.toList();
bool foundAnyInCurrentDirectory = false;

View File

@@ -3,6 +3,7 @@
// found in the LICENSE file.
import 'dart:async';
import 'dart:collection';
import 'dart:convert';
import 'dart:io';
import 'dart:isolate';
@@ -32,7 +33,7 @@ class RemoteListener {
final Suite _suite;
final WebSocket _socket;
final Set<LiveTest> _liveTests = new Set<LiveTest>();
final Set<LiveTest> _liveTests = new HashSet<LiveTest>();
static Future start(String server, Metadata metadata, Function getMain()) async {
WebSocket socket = await WebSocket.connect(server);