Hello, just ran a quick benchmark on a Android Pro...
# jvm-ir-backend-feedback
s
Hello, just ran a quick benchmark on a Android Project, Kotlin 1.4.30, and it seems
useIR
does slow down the build a bit:
Copy code
useIR: false, clean & rebuild:
1. 41s
2. 41s
3. 40s

useIR: true, clean & rebuild:
1. 44s
2. 43s
3. 43s
Granted, it is only marginal slower since it is also only a relatively small project (single module) - but will it affect larger projects proportionally? Out of curiosity I also tried with
compose: true
and was rather disappointed:
Copy code
useIR: true, compose: true, clean & rebuild:
1. 53s
2. 52s
3. 52s
I honestly expected the new Backend to be if anything, then faster than the existing one?
👍 1
l
I'd expect compilation to be slower as you add compiler plugins, since there's more stuff to check and more code to run. JVM IR is about sharing more compiler code with other Kotlin targets, to simplify changes, optimizations, and compiler plugins.