Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Batch files when running CFE to update static error tests.
The static error test updater needs to ask analyzer, CFE, and dart2js for the errors for each updated test file. Previously, it would invoke each of those as a separate process, one at a time, for each test file. This was comically slow. I recently updated it to invoke analyzer as a library and analyze all the files at once, which made that part >100x faster. This CL does essentially the same thing for CFE. It's still invoking CFE as a process, but it does so with a batch of files. It's not as fast as analyzer is, but it's much better. It's still calling dart2js once per file but, strangely, that isn't too slow. Also, web static error tests aren't very common, so this isn't as important. Change-Id: I6756901bb761579dc90f8af4d9774014b04bb009 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/399885 Auto-Submit: Bob Nystrom <[email protected]> Reviewed-by: Paul Berry <[email protected]> Commit-Queue: Bob Nystrom <[email protected]>
- Loading branch information