Move us to HashSet to avoid the overhead of tracking the order
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user