Re:Java is fast, code might not be
by dionian on Friday March 20, 2026 @10:59AM
(#47455552)
This is why I use java for long running processes, if i care about a small binary that launches fast, i just use something slower at runtime but faster at startup like python.
[ Parent
| on HN ]
Re:Java is fast, code might not be
by packetlost on Friday March 20, 2026 @11:03AM
(#47455611)
Python startup time can be pretty abysmal too if you have a lot of imports.
This is addressed by PEP 810 (explicit lazy imports) in Python 3.15 (currently in alpha):
https://peps.python.org/pep-0810/
Re:Java is fast, code might not be
by packetlost on Friday March 20, 2026 @11:26AM
(#47455959)
Yeah, but it requires code changes to matter
Re:Java is fast, code might not be
by AlotOfReading on Friday March 20, 2026 @11:02AM
(#47455587)
And then you get applications choosing the worst of both worlds, like bazel/blaze.
So long as you aren't in a docker container, The openjdk can do fast startup pretty trivially.
There are options to turn on which cause the JVM to save off and reload compiled classes. It pretty massively improves performance.
You can get even faster if you do that plus doing a jlink jvm. But that's more of a pain. The AOT cache is a lot simpler to do.