开发者

How does Google App Engine precompile Java?

开发者 https://www.devze.com 2022-12-22 00:44 出处:网络
App Engine uses a \"precompila开发者_运维问答tion\" process with the Java bytecode of an app to enhance the performance of the app in the Java runtime environment. Precompiled code functions identica

App Engine uses a "precompila开发者_运维问答tion" 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.

Is there any detailed information what this does?


I found this in a 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.

So it seems that precompilation is about optimizing load time, not runtime performance.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号