| ||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||
![]() |
原始链接: https://news.ycombinator.com/item?id=43954178
这篇Hacker News讨论围绕着JEP 515展开,这是一个针对OpenJDK的提案,旨在通过提前(AOT)方法分析来改进Java的启动时间。评论者强调了这项功能对Java标准库,特别是Streams流式处理的潜在好处,因为它允许预编译。JEP的目标是加快JVM执行的初始阶段, potentially 为Java应用程序提供“Graal级别”的启动性能。 一些人认为这对短暂运行的Java应用程序(例如lambda风格的部署)有显著的提升,而另一些人则认为对长期运行的服务器应用程序的影响微乎其微。讨论还涉及到现有的AOT技术,例如Graal,以及OpenJ9/Websphere Real-Time JVM等商业JVM中的类似功能。一些人建议这种方法可能适用于其他语言,例如Python。 缓存本地代码以消除热点函数的JIT开销的可能性也受到了考虑。
| ||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||
![]() |
If you can find a way (which this JEP is one way) to make the bulk of the java standard api AOT compiled, then java programs will be faster (much faster).
Also, the JVM is already an engine marvel (java JIT code is fast as hell), but this will make java programs much nimbler.
reply