Mithilesh K
09/07/2026, 10:41 AMlatinString, smallBinary, and also ran strip - rSTx the size improved, but our KMP frameworks are still consistently around 1.3–1.4× larger than equivalent Swift implementations.
We tested this with:
• Two small equivalent Swift/KMP libraries
• One real production library implemented in both
All showed roughly the same 1.3–1.4× difference.
We have also reduced unnecessary public APIs and removed some data classes. Removing data classes alone saved ~180 KB.
Are there any additional Kotlin/Native compiler, linker, or code-structure optimizations that can realistically bring the difference closer to ~1.1× native size?
Or is ~1.3–1.4× a reasonable baseline for Kotlin/Native frameworks on iOS?אליהו הדס
09/07/2026, 11:53 AMPamela Hill
09/07/2026, 2:28 PMMithilesh K
09/08/2026, 9:18 AMPamela Hill
09/09/2026, 8:38 AMFrançois
09/11/2026, 6:50 AMrusshwolf
09/12/2026, 3:01 AMMithilesh K
09/12/2026, 6:01 AM