r/java • • Sep 10 '26

New candidate JEP: 544: Ahead-of-Time Code Compilation

https://mail.openjdk.org/archives/list/jdk-dev@openjdk.org/message/J2VGSSFWJ7ZLHAYLCXVRUOXV4XMROQHL/
111 Upvotes

35 comments sorted by

View all comments

Show parent comment

7

u/Phaestion Sep 11 '26

We already use the current training runs for our apps, both when we are building backends as well as our desktop apps that run as kiosk systems.

Even with the current AOT cache in Java 25 we see a substantial improvement in start up.

In our backends we only spin up services as needed, so a fast start up is money. In kiosk systems it's less important, given they run for a long time, but why say no to faster start up?

1

u/agentoutlier Sep 11 '26 edited Sep 11 '26

In our backends we only spin up services as needed, so a fast start up is money. In kiosk systems it's less important, given they run for a long time, but why say no to faster start up?

Actually I think its the opposite and vaguely remember ironically the JEP 483 or whatever where it was mentioned this was more for those kinds of apps (kiosk). EDIT I can't find it but I guess its not JEP 483 but sometime prior when Project Leyden was introduced aka "Capturing Lightening..." it sounded like more useful unique applications aka kiosk instead of Spring Boot services.

The reason is that services need to be warmed regardless of the JVM. You have to warm database connections and ease load on anyways.

Where this could be useful in cloud is lambda like things that really do have to just go on and then immediatly off.