0549295eb4
Compared to assigning selector IDs purely by name, this improves the packing of selector rows, reducing the in-memory size of the dispatch table by typically around 20% (75k memory usage reduction for Flutter Gallery on ARM64). It also improved tree shaking of methods called (or rather, not called) via dispatch table calls, reducing the total snapshot sizes of Flutter benchmarks by up to 2.1% (Flutter Gallery: ARM 1.8%, ARM64 2.1%). Fixes https://github.com/dart-lang/sdk/issues/40660 Fixes https://github.com/dart-lang/sdk/issues/41647 Change-Id: Ia9ecfb0818b301bcbad631c377f3910b0a5956de Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/152323 Commit-Queue: Aske Simon Christensen <askesc@google.com> Reviewed-by: Martin Kustermann <kustermann@google.com>