[llvm-dev] StringSwitch efficiency
Paul C. Anagnostopoulos via llvm-dev
llvm-dev at lists.llvm.org
Wed Oct 28 09:56:31 PDT 2020
At what point should I consider changing from a StringSwitch construct to something more efficient? TableGen has a few of them. In particular, the switch for looking up a bang operator has about 40 cases, all short strings.
One trivial improvement would be to split it into two StringSwitch's based on the first letter of the operator name.
More information about the llvm-dev
mailing list