gpt4 book ai didi

java - Google App Engine 如何预编译 Java?

转载 作者:搜寻专家 更新时间:2023-10-31 20:16:16 24 4
gpt4 key购买 nike

App Engine uses a "precompilation" process with the Java bytecode of an app to enhance the performance of the app in the Java runtime environment. Precompiled code functions identically to the original bytecode.

有没有详细说明这是做什么的?

最佳答案

我在 googlegroups message 中找到了这个:

Yes, pre-compilation reduces the time to load an application. This will benefit you on your first request after a deploy, after you've been cycled out or if more application instances are created to scale up with your load. You will see up to 30% improved loading time on your first request. Pre-compilation works by doing a bit of class loading work ahead of time in the App Engine environment before the request comes in.

所以看起来预编译是关于优化加载时间,而不是运行时性能。

关于java - Google App Engine 如何预编译 Java?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2398738/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com