mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
The performLayout and build callsite are highly megamorphic because they dispatch into a large number of clients. However, for a given caller, the callee is always of the same type, which means the megamorphic lookup exactly factors by the caller. We can speed up the dispatch by capturing a closure at initialization and then monomorphically dispatching through the closure.