CodeName OneShai Almog7 min readadvanced
Faster Starts, Less JavaScript Overhead
Summary
Codename One reduced startup latency and JavaScript overhead by publishing screen state atomically, indexing style lookups, avoiding unnecessary artwork generation, and refining suspension analysis, yielding measurable speedups.
- Publishing screen and scale together removes 35 ms of blocked EDT time on Mac launch.
- Indexing dark‑variant keys cuts UIID style lookup from 112 µs to 17 µs.
- getPreferredSize() now returns size without generating artwork, eliminating wasted GPU work.
- Receiver‑type analysis prevents non‑blocking methods from becoming generators, reducing yield sites by 25 %.
Mobile developers and framework engineers who need to shrink startup times and JavaScript overhead in cross‑platform apps should see actionable patterns here.
7/10
