It's a pain that we are working on from many angles, you're definitely not alone. It's sadly also one of those topics without magic bullets, but here's what has been done recently or will be available:
1. In Kotlin 2.3.0 Kotlin/Native has released
improvements to linking for release tasks, with some of our benchmarks seeing a 40% improvement.
2. In Kotlin 2.4.20
incremental compilation will be enabled by default, though this mainly benefits debug builds.
3. We noticed that many user projects we investigate for build speed issues have configurations or modularization that could be improved. We have
documented this, but realistically this is hard to do manually if you are not familiar. We have a PR in review for an
agent skill that improves native build times for you, feel free to try this out already.
Even after all this work, we know there is still more room for improvement. Could you share a little bit more about the size and nature of your project? Does it have a lot of modules or are they maybe very large? Do you maybe have large native dependencies you rely on? Do you use release builds for all your CI/CD runs or do you run only run release for actual release pipelines? Any context can help us with improving further!