Hey guys, are there any tips and tricks on how to ...
# multiplatform
j
Hey guys, are there any tips and tricks on how to improve kotlin/native compilation speed? Right now my project takes around 20min to build .framework for ios and just around 3min for android. Is it a common issue for multiplatform projects or is something wrong with my setup?
k
1. only build release frameworks, 2. remove the test target/source set for arm64
that should cut it in half, in theory. however, 20 min seems excessive
j
What version of Kotlin are you using? There were some significant improvements in Kotlin/Native compiler performance in 1.3.70
s
only build release frameworks
Starting from 1.3.70, debug mode for ios simulator target is way faster than release mode because it is using compiler caches.
👍 1
k
interesting
i didn't notice because I only build release frameworks 😛
the simulator target is the test target, though, right?
not the framework
s
iosX64
(iOS Simulator) is a regular target that can be used for any kind of output, including framework. So if you regularly test your iOS app in simulator, producing debug builds of framework instead of release should increase your productivity.
k
gotcha
i do all my testing through unit tests as functional testing is too inconvenient