技术控

    今日:130| 主题:49332
收藏本版 (1)
最新软件应用技术尽在掌握

[其他] Java 9 proposal could speed some apps, but slow others

[复制链接]
娓娓动听句句刺心 发表于 2016-10-1 00:17:36
131 2

立即注册CoLaBug.com会员,免费获得投稿人的专业资料,享用更多功能,玩转个人品牌!

您需要 登录 才可以下载或查看,没有帐号?立即注册

x

Java 9 proposal could speed some apps, but slow others-1 (completely,president,principal,available,technical)

Java applications will get faster startup times thanks to a formal proposal to include ahead-of-time compilation in the platform.
The draft Java Development Kit proposal, authored by Vladimir Kozlov, principal technical staff member at Oracle, is targeted for inclusion in Java 9, which is expected to be available next summer.
  "We would love to see this make it into JDK 9, but that will of course depend on the outcome of the OpenJDK process for this JEP (JDK Enhancement Proposal)," said Georges Saab, vice president of software development in the Java platform group at Oracle, on Thursday. Ahead-of-time compilation has been a stated goal for Java 9 to address the issue of slow startup.
"JIT compilers are fast, but Java programs can become so large that it takes a long time for the JIT to warm up completely," Kozlov's proposal states. "Infrequently used Java methods might never be compiled at all, potentially incurring a performance penalty due to repeated interpreted invocations."
The proposal summary notes that Java classes would be compiled to native code prior to launching the virtual machine. The ultimate goal is to improve the startup time of small or large Java applications while having "at most" a limited impact on peak performance and minimizing changes to the user workflow.
  Ahead-of-time compilation would be accomplished via a new tool, jaotc, whileGraal technology, which make it feasible to write a dynamic compiler and language runtime interpreter in Java, is used as a code-generating back end. Usage of AOT-compiled code is transparent to users, but JVM options to control access to and storage of the code are provided, according to the proposal.
The plan, however, carries performance risks. "It is possible that the use of precompiled code could result in less-than-optimal code being used, resulting in a loss of performance," the proposal states. "Performance testing shows that some applications benefit from AOT-compiled code while others clearly show regressions." With AOT as an an opt-in feature, possible performance regressions with user applications are avoidable. "If a user finds that an application starts up more slowly, or doesn't reach the expected peak performance, they can just rebuild a new JDK without AOT libraries."
  The project depends on the Java-Level JVM Compiler Interface, which enables a compiler written in Java to be used by the JVM as a dynamic Java compiler. It also depends on Graal-core to be part of the JDK. Java 9 had been slated to arrive next March, but a four-month delay has been proposed .
友荐云推荐




上一篇:Insanely Easy and Simple React Form Tutorial
下一篇:软件开发技艺精进之路
酷辣虫提示酷辣虫禁止发表任何与中华人民共和国法律有抵触的内容!所有内容由用户发布,并不代表酷辣虫的观点,酷辣虫无法对用户发布内容真实性提供任何的保证,请自行验证并承担风险与后果。如您有版权、违规等问题,请通过"联系我们"或"违规举报"告知我们处理。

简安阳 发表于 2016-10-1 23:12:37
蜘蛛会不会上吊?
回复 支持 反对

使用道具 举报

我很二 发表于 2016-10-4 21:45:09
火前留名,前排占座,此楼出租,欢迎议价。
回复 支持 反对

使用道具 举报

*滑动验证:
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

我要投稿

推荐阅读

扫码访问 @iTTTTT瑞翔 的微博
回页顶回复上一篇下一篇回列表手机版
手机版/CoLaBug.com ( 粤ICP备05003221号 | 文网文[2010]257号 )|网站地图 酷辣虫

© 2001-2016 Comsenz Inc. Design: Dean. DiscuzFans.

返回顶部 返回列表