As those who often flash ROMs, and anyone who’s done an OTA or factory reset know, one of the most frustrating things with Android is waiting for it to compile our apps on first boot.

Since Dalvik was left behind for ART Ahead-Of-Time (AOT) compilation in Lollipop, first boot has become a frustrating test of patience. With the ever increasing size of Android system apps and manufacturers continuing to bulk ROMs up with their own apps, the first boot after a ROM install or factory reset can seem like an eternity.

glass_android

One of the biggest things to look forward to with Android N is Just-In-Time (JIT) compiling. That is, apps will compile as they’re used, instead of compiling 100+ apps at first boot after OTA/factory reset/ROM install.

The first run of an app will be slightly slow, but after that will boot as normal. The bonus here is that there’s not a 10 minute wait for apps to compile on the first boot.

Hybrid compile mode

Android N won’t use a full JIT setup, but a hybrid-mode which will also compile apps AOT when the phone is “idle and charging”.

Says Google, “ART manages profile-guided compilation in a way that minimizes impact on the device battery. It does precompilation only when then the device is idle and charging, saving time and battery by doing that work in advance.”

App installs

In addition, apps which are installed from Play will install much quicker, because they won’t compile on install, but on first run, or when the phone is not in active use.

Says Google, “One of the most tangible benefits of ART’s JIT compiler is the speed of app installs and system updates. Even large apps that required several minutes to optimize and install in Android 6.0 can now install in just a matter of seconds. System updates are also faster, since there’s no more optimizing step.”

In summary

  • No more waiting for 100+ apps to “optimize” after OTA, factory reset, PC ROM flash
  • JIT compilation makes the first run of an app slightly slower, but after that first run will boot as quick as usual
  • While the phone isn’t being actively used, it will AOT compile apps which haven’t been compiled yet
  • New app installs will happen quicker

This is one of the more exciting things to see happen in a while with Android and we’re looking forward to giving it a test run, especially with mobiles such as Xiaomi which have weekly updates.

Android N feature preview JIT Just-In-Time app compilehttp://www.gizbeat.com/wp-content/uploads/glass_android-450x253.jpghttp://www.gizbeat.com/wp-content/uploads/glass_android-150x150.jpg Damian Parsons AndroidNewsRecentSpecial
As those who often flash ROMs, and anyone who's done an OTA or factory reset know, one of the most frustrating things with Android is waiting for it to compile our apps on first boot. Since Dalvik was left behind for ART Ahead-Of-Time (AOT) compilation in Lollipop, first boot has...
As those who often flash ROMs, and anyone who's done an OTA or factory reset know, one of the most frustrating things with Android is waiting for it to compile our apps on first boot.<span id="more-9900"></span> Since Dalvik was left behind for ART Ahead-Of-Time (AOT) compilation in Lollipop, first boot has become a frustrating test of patience. With the ever increasing size of Android system apps and manufacturers continuing to bulk ROMs up with their own apps, the first boot after a ROM install or factory reset can seem like an eternity. <img class="size-full wp-image-9902 aligncenter" src="http://www.gizbeat.com/wp-content/uploads/glass_android.jpg" alt="glass_android" width="620" height="349" /> One of the biggest things to look forward to with Android N is Just-In-Time (JIT) compiling. That is, apps will compile as they're used, instead of compiling 100+ apps at first boot after OTA/factory reset/ROM install. The first run of an app will be slightly slow, but after that will boot as normal. The bonus here is that there's not a 10 minute wait for apps to compile on the first boot. <h3>Hybrid compile mode</h3> Android N won't use a full JIT setup, but a hybrid-mode which will also compile apps AOT when the phone is "idle and charging". <blockquote>Says Google, "ART manages profile-guided compilation in a way that minimizes impact on the device battery. It does precompilation only when then the device is idle and charging, saving time and battery by doing that work in advance."</blockquote> <h3>App installs</h3> In addition, apps which are installed from Play will install much quicker, because they won't compile on install, but on first run, or when the phone is not in active use. <blockquote>Says Google, "One of the most tangible benefits of ART's JIT compiler is the speed of app installs and system updates. Even large apps that required several minutes to optimize and install in Android 6.0 can now install in just a matter of seconds. System updates are also faster, since there's no more optimizing step."</blockquote> <h3>In summary</h3> <ul> <li>No more waiting for 100+ apps to "optimize" after OTA, factory reset, PC ROM flash</li> <li>JIT compilation makes the first run of an app slightly slower, but after that first run will boot as quick as usual</li> <li>While the phone isn't being actively used, it will AOT compile apps which haven't been compiled yet</li> <li>New app installs will happen quicker</li> </ul> This is one of the more exciting things to see happen in a while with Android and we're looking forward to giving it a test run, especially with mobiles such as Xiaomi which have weekly updates.



Related Posts

Saddening video of the polar bear’s plight

Saddening video of the polar bear’s plight

RIP Yongning Wu. China daredevil dies in his last attempt

RIP Yongning Wu. China daredevil dies in his last attempt

Ultimate newbie root Vernee Mix 2 TWRP

Ultimate newbie root Vernee Mix 2 TWRP

Is Ulefone T1 faking SoC? Showing MT6757CD@2.6GHz instead of MT6757CH@2.39GHz

Is Ulefone T1 faking SoC? Showing [email protected] instead of [email protected]

New trailer and 15 rumors about The Last Jedi

New trailer and 15 rumors about The Last Jedi

Icy moon Enceladus, which has hydrothermal vents

20 year Saturn space mission ends for Cassini