How does Google App Engine precompile Java?

假装没事ソ 提交于 2019-12-04 23:59:23

问题


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.

Is there any detailed information what this does?


回答1:


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.



来源:https://stackoverflow.com/questions/2398738/how-does-google-app-engine-precompile-java

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!