proomt

Search

Search posts, papers, and topics

All posts

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

Related reading

  1. JavaScript Find in Page: DOM Text Above the Codename One Canvas

    The Codename One JavaScript port now projects eligible text runs from its canvas onto an absolute‑positioned DOM layer, restoring browser find‑in‑page, selection, and accessibility while keeping layout on the canvas. It also adds high‑DPI backing, incremental semantic diffing, and richer input attributes, with a few edge cases still rendered on the canvas.

    CodeName Onecodenameone.com4 min
  2. We Didn't Want to Build Another Java Server

    Codename One introduced an experimental native Java backend that compiles Java controllers to a tiny native executable via ParparVM. Benchmarks show sub‑millisecond startup, 10‑40 MiB memory, and up to 20 % higher request throughput than a Go fasthttp server.

    CodeName Onecodenameone.com15 min
  3. Next.js 16.3 support on Vercel

    Vercel added full support for Next.js 16.3, bringing leaner prefetching, immutable static assets, and faster route metadata handling. Early adopters see up to 45% fewer prefetches, 24% less static traffic, and roughly 2× faster routing at scale.

    Vercelvercel.com4 min
  4. Javadoc That Feels Like Your Website

    Codename One replaced its Javadoc‑generated site with a Hugo‑based pipeline: a custom doclet emits one Hugo content file per Java type, preserving Markdown comments, generating a lightweight search index, and keeping the traditional offline Javadoc archive. The approach reduces index size (1.9 MB → 341 KB gzipped), retains existing anchors, and can be reused for other Java projects.

    CodeName Onecodenameone.com4 min