daml
daml copied to clipboard
Improve code generated for pattern matching on strings/integers/enums
Currently, some cases produce a linear search when pattern matching on strings or integers. We should avoid searches that are too long and produce a binary search tree instead. See https://github.com/digital-asset/daml/blob/ea50c329f28ac1d4507dcdeda42e01d6e491c445/compiler/damlc/daml-lf-conversion/src/DA/Daml/LFConversion.hs#L831