dart-sdk/pkg/kernel/bin
Jens Johansen 00caf79873 [kernel] Order switch cases when reading dill according to (sampled) usage
I've sampled (eagerly) reading the VM platform, a compilation of
dart2js, a compilation of "flutter gallery" and a compilation of a big
internal app, and reordered switch cases accordingly.

I can't measure any difference in runtime, but have a hard time
thinking it's not better.

I've included the tool that does the sampling.

Change-Id: If61c5a95265229c238020264010553f281fec49c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/267362
Commit-Queue: Jens Johansen <jensj@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2022-11-07 09:20:59 +00:00
..
compare_hierarchies.dart [kernel] Spell check kernel/bin 2022-02-02 12:20:46 +00:00
count_breakdown.dart [kernel] Add always_declare_return_types lint 2021-09-01 16:50:27 +00:00
dill_forensic.dart [kernel] Spell check kernel/bin 2022-02-02 12:20:46 +00:00
dump.dart [cfe] Run commands of tool/fasta.dart in the same VM 2022-03-10 15:23:15 +00:00
size_breakdown.dart [kernel] Add always_declare_return_types lint 2021-09-01 16:50:27 +00:00
split.dart Remove redundant imports 2021-09-20 15:25:01 +00:00
switch_order.dart [kernel] Order switch cases when reading dill according to (sampled) usage 2022-11-07 09:20:59 +00:00
type_check.dart