TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

JEP 483: Ahead-of-Time Class Loading and Linking

148 点作者 ptx5 个月前

9 条评论

fulafel5 个月前
What does this mean for Clojure? At least loading the Clojure runtime should benefit, but what about app code loading.
评论 #42485580 未加载
评论 #42488203 未加载
评论 #42485448 未加载
o11c5 个月前
The concern that jumps out at me is: what about flags that affect code generation? Some are tied to the subarch (e.g. "does this amd64 have avx2?" - relevant if the cache is backed up and restored to a slightly different machine, or sometimes even if it reboots with a different kernel config), others to java's own flags (does compressed pointers affect codegen? disabling intrinsics?).
评论 #42484220 未加载
carimura5 个月前
For reference this is part of Project Leyden [1][2] which was introduced in 2022 with the first ideas showcased at JVMLS 2023 [3].<p>[1] <a href="https:&#x2F;&#x2F;openjdk.org&#x2F;projects&#x2F;leyden&#x2F;" rel="nofollow">https:&#x2F;&#x2F;openjdk.org&#x2F;projects&#x2F;leyden&#x2F;</a><p>[2] <a href="https:&#x2F;&#x2F;inside.java&#x2F;tag&#x2F;leyden" rel="nofollow">https:&#x2F;&#x2F;inside.java&#x2F;tag&#x2F;leyden</a><p>[3] <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=lnth19Kf-x0" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=lnth19Kf-x0</a>
pjmlp5 个月前
Note that OpenJ9 and Azul already do similar optimizations.<p>And Android while not being a Java&#x2F;JVM proper, more of a cousin, also has similar JIT cache concept as intermediate step before doing AOT compilation of selected code.<p>Naturally also welcomed on the OpenJDK distributions.
VonNaturAustre5 个月前
Nice, any time optimization is welcome :)
petesoper5 个月前
Sweet!
s6af7ygt5 个月前
I&#x27;m a dunce
评论 #42485589 未加载
foolfoolz5 个月前
i’m curious if any of this was inspired from aws lambda snapstart
评论 #42484010 未加载
layer85 个月前
&gt; [example hello world] program runs in 0.031 seconds on JDK 23. After doing the small amount of additional work required to create an AOT cache it runs in in 0.018 seconds on JDK NN — an improvement of 42%. The AOT cache occupies 11.4 megabytes.<p>That’s not immediately convincing that it will be worth it. It is a start I guess.
评论 #42484512 未加载