• James D. Lin's avatar
    Make `ProjectFileInvalidator.findInvalidated` able to use the async `FileStat.stat` (#42028) · 83704b1d
    James D. Lin authored
    Empirical measurements indicate on the network file system we use
    internally, using `FileStat.stat` on thousands of files is much
    faster than using `FileStat.statSync`. (It can be slower for files
    on a local SSD, however.)
    
    Add a flag to `ProjectFileInvalidator.findInvalidated` to let it
    use `FileStat.stat` instead of `FileStat.statSync` when scanning for
    modified files.  This can be enabled by overriding `HotRunnerConfig`.
    
    I considered creating a separate, asynchronous version of
    `findInvalidated`, but that led to more code duplication than I
    liked, and it would be harder to avoid drift between the versions.
    83704b1d
Name
Last commit
Last update
..
bin Loading commit data...
doc Loading commit data...
gradle Loading commit data...
ide_templates/intellij Loading commit data...
lib Loading commit data...
schema Loading commit data...
static Loading commit data...
templates Loading commit data...
test Loading commit data...
tool Loading commit data...
BUILD.gn Loading commit data...
README.md Loading commit data...
analysis_options.yaml Loading commit data...
build.yaml Loading commit data...
dart_test.yaml Loading commit data...
pubspec.yaml Loading commit data...