Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does Google App Engine precompile Java?

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?

like image 381
Thilo Avatar asked Oct 15 '22 08:10

Thilo


1 Answers

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.

like image 149
Stephen C Avatar answered Oct 31 '22 21:10

Stephen C