Join Slack
Powered by
with 1.3.31 i'm seeing enum `when`'s generating a ...
# compiler
j
jw
06/13/2019, 3:27 AM
with 1.3.31 i'm seeing enum `when`'s generating a bunch of if/else's instead of a tableswitch
🤖 1
jw
06/13/2019, 4:03 AM
When I copy
https://github.com/JetBrains/kotlin/blob/master/compiler/testData/codegen/bytecodeText/whenEnumOptimization/expression.kt
into a file and compile with 1.3.31 i do not get any `tableswitch`s
jw
06/13/2019, 1:20 PM
nevermind. kotlinc is producing tableswitch's and then the android toolchain is removing them because when they're small they cost more than if/elses in terms of bytecode size
😎 2
3
Views
Open in Slack
Previous
Next