Do less file system crawling when we have the Dart dependency set (#9424)

- [x] Skip scanning the file system if we already have the Dart dependency set.

Fixes #9376

```
Performing hot reload...
Reloaded 1 of 418 libraries in 888ms.

Performing hot reload...
Reloaded 1 of 418 libraries in 871ms.

** UNTAR dragontail under project root **
Performing hot reload...
Reloaded 0 of 418 libraries in 443ms.

** UNTAR dragontail under lib/ **
Performing hot reload...
Reloaded 0 of 418 libraries in 385ms.
```
This commit is contained in:
John McCutchan
2017-04-17 11:20:04 -07:00
committed by GitHub
parent 5e73133797
commit 2c1bb355dd
2 changed files with 83 additions and 25 deletions

View File

@@ -184,7 +184,6 @@ void main() {
.map((FileSystemEntity file) => fs.path.canonicalize(file.path))
.toList());
}
final int bytes = await devFS.update(fileFilter: fileFilter);
devFSOperations.expectMessages(<String>[
'writeFile test .packages',