# Java's new AOT cache cuts startup time by up to 80%

Original title: JEP 544: Ahead-of-Time Code Compilation

> Hacker News story 49647404 · language: en · submitted 2026-09-10
> Web version: https://zeli.app/story/49647404
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 100 · by [Skinney](<https://news.ycombinator.com/user?id=Skinney>) · 💬 53
[original](<https://openjdk.org/jeps/544>) · [HN discussion](<https://news.ycombinator.com/item?id=49647404>)

## Summary

JEP 544 stores optimized native code from a training run in the AOT cache, making it instantly available when HotSpot starts. Benchmarks show startup improvements of 65–80% and a javac warmup gain of about 75%. If workloads change, HotSpot deoptimizes and reoptimizes dynamically, blending AOT and JIT compilation without requiring any code or configuration changes.

## Key quote

> Thus Java applications will gain some of the benefits of static compilation while retaining the agility, portability, and compatibility of dynamic compilation.

## HN discussion (53 comments)

### [cogman10](<https://news.ycombinator.com/item?id=49650124>)

> Leyden has been relying pretty heavily on training runs which I get, but man is that a pretty hard burden to setup.
>
> The tooling for doing these sorts of training runs doesn't really exist, you end up needing to do something more bespoke as part of your build pipeline if you want it there.  That can be especially tricky with more complicated applications like the ones I maintain.
>
> I like what these can deliver, but dislike the effort needed to get it going.

### [treyd](<https://news.ycombinator.com/item?id=49650650>)

> What are the architectural differences between this and Android's ahead-of-time runtime?

### [cyberax](<https://news.ycombinator.com/item?id=49647931>)

> Excelsior JET did that 25 years ago: https://en.wikipedia.org/wiki/Excelsior_JET
>
> It's a shame that Sun/Oracle never partnered with them to bring native apps. This could have saved Java on the desktop.

### [java-man](<https://news.ycombinator.com/item?id=49647640>)

> I hope at some point we'll get AOT-only mode (or compile to native) and maybe even cross-compilation.

### [ledo9915](<https://news.ycombinator.com/item?id=49648495>)

> Data point from a small side project: I run user code in a Piston sandbox for a coding challenge site. A trivial Java program costs 2.5-3 s wall clock on a 4 vCPU box, almost all of it javac plus JVM startup. Go takes about 1.7 s for build plus run, and Swift running through the interpreter is at 0.4 s. Java is the reason I had to put a global rate limit on compiled languages at all. If AOT gets the JVM side down to a few hundred ms, that changes what a small box can serve.

---

## Cite

- Page: https://zeli.app/story/49647404
- Date: 2026-09-10
- Source: openjdk.org (https://openjdk.org/jeps/544)
- Hacker News: https://news.ycombinator.com/item?id=49647404

## Other languages

- zh: https://zeli.app/zh/story/49647404 · markdown: https://zeli.app/zh/story/49647404.md
- ja: https://zeli.app/ja/story/49647404 · markdown: https://zeli.app/ja/story/49647404.md
- ko: https://zeli.app/ko/story/49647404 · markdown: https://zeli.app/ko/story/49647404.md
- de: https://zeli.app/de/story/49647404 · markdown: https://zeli.app/de/story/49647404.md
- es: https://zeli.app/es/story/49647404 · markdown: https://zeli.app/es/story/49647404.md
- ru: https://zeli.app/ru/story/49647404 · markdown: https://zeli.app/ru/story/49647404.md
