Hi, I have a use case where I can optimize a type ...
# compiler
r
Hi, I have a use case where I can optimize a type lookup with a fast
switch
based on ints. Does the kotlin compiler ever optimizes
when
to become a fast
switch
based on ints? If not what is the equivalent in Kotlin of https://www.scala-lang.org/api/current/scala/annotation/switch.html if any? thanks!
👌 1
To answer myself I ended up verifying that when all cases are int constants it does the tableswitch optimization 🎆