mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 12:30:03 +00:00
467c98b846
This change introduces handling of protobufs while doing type flow analysis. Metadata in protobuf message classes is updated dynamically according to the set of called accessors, invalidating and rebuilding TFA summaries as needed. Previously, protobuf-aware tree shaker required the 2nd run of TFA in order to do the actual tree-shaking after protobuf messages are pruned. This significantly increases compilation time. AOT compilation time of a large app (--from-dill): 274s -> 152s New tree shaker is available in kernel compilers under the flag --protobuf-tree-shaker-v2. Issue https://github.com/dart-lang/sdk/issues/42442 Fixes https://github.com/dart-lang/sdk/issues/40785 Change-Id: I4347896737b9b0f7407b845e614dda9ba7621921 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/152100 Commit-Queue: Alexander Markov <alexmarkov@google.com> Reviewed-by: Clement Skau <cskau@google.com> Reviewed-by: Vyacheslav Egorov <vegorov@google.com> |
||
---|---|---|
.. | ||
src | ||
frontend_server.dart |