Compile const Map<String, T>
as jump tables for performance
#48963
Labels
area-vm
Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
type-enhancement
A request for a change that isn't a bug
This tracker is for issues related to:
For Flutter I just switched some
const Map<String, String>
s to jump tables and they performed 2x faster thanMap<String, String>
at lookup (flutter/engine#33123). This seems like an optimization we could do under the hood and it should always be faster and smaller code. Usingconst Map<String, T>
seems a very common pattern inside of Google.The text was updated successfully, but these errors were encountered: