mirror of
https://github.com/dart-lang/sdk
synced 2024-09-04 16:03:44 +00:00
![]() When launched as a snapshot, the initial compile is slower than the existing pub approach because of a process start time of around 500 ms. When launched as a compiled executable, initial compile times are the same as the existing pub approach. Once launched, experimental results show times to produce a kernel file of at worst 1.5-2x faster than pub's solution and at best 10x faster than pub's solution. The typical workflow of making changes and recompiling results in an average of a 5x speedup with respect to pub's implementation. Because compiler instances use a lot of memory, there is a limit on the number of active compilers that the resident server will keep alive, and will actively bring instances down when this limit is exceeded. If the user was previously compiling a given project during the lifespan of a ResidentFrontendServer and its compiler is taken down between requests, a new compiler instance will be allocated for the request. Performance is still between 1.5x-5x faster for this case when compared to pub's compile times. Change-Id: If9ee1ecc71d660d34faf23381c764dc11d6a5902 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/252001 Reviewed-by: Siva Annamalai <asiva@google.com> Reviewed-by: Jake Macdonald <jakemac@google.com> Commit-Queue: Michael Richards <msrichards@google.com> Reviewed-by: Alexander Aprelev <aam@google.com> |
||
---|---|---|
.. | ||
frontend_server_starter.dart |