• 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
.github Loading commit data...
bin Loading commit data...
dev Loading commit data...
examples Loading commit data...
packages Loading commit data...
.cirrus.yml Loading commit data...
.codecov.yml Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CODEOWNERS Loading commit data...
CODE_OF_CONDUCT.md Loading commit data...
CONTRIBUTING.md Loading commit data...
LICENSE Loading commit data...
PATENT_GRANT Loading commit data...
README.md Loading commit data...
analysis_options.yaml Loading commit data...
dartdoc_options.yaml Loading commit data...
flutter_console.bat Loading commit data...