Codename One Lets Compose Code Run on More Screens With Lower CPU Use

Codename One, an open-source framework for building native iOS, Android, desktop, and web apps from Java or Kotlin, now supports Compose code. The author says the approach reaches more targets than Compose Multiplatform and avoids a transpiler, since kotlinc compiles the code while the UI layer is a reimplementation over Codename One components. A benchmark app called Keynote, run as release builds on an iPhone 17 Pro simulator, showed similar frame rates across three versions but used roughly 4 ms per frame of CPU work for Compose on Codename One versus about 17 ms for Compose Multiplatform. The author notes caveats, including that the tests ran on a simulator with programmatic scrolling and that start-up times are heavily influenced by iOS itself. The post presents Kotlin Multiplatform as a strong platform while arguing this option offers certain advantages.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in