Android's user experience has a relatively bad start compared to IOS. For a long time, the interface has always been ugly duckling, the lag is also lingering pain. However, with Google's full push, and the hardware vendor's response, Android has grown beyond all obstacles.
In the process, Google is also undergoing significant changes. It has shifted from a company that values data to a company that values design and user experience. Starting with Android 4.0, Android has its own design language and application design guidance. At the same time, Google is also tackling the problem. Android 4.1 's " Butter program ", the android 4.3 TRIM Support, have significantly increased the smoothness of the system running, while Android 4.4 's "Project Svelte" Improved memory management, allowing the system to run smoothly on devices with low-end hardware configurations.
However, to solve the application lag, or to focus on the core issues, is the application of the operating environment. Dalvik VM efficiency is not the highest. Starting with Android 4.4, Google developers introduced the new Android operating environment ART (meaning Android runtime. An introduction to the official Android page, also known as a new virtual machine, replaces the old Dalvik VM. It is now an experimental option, and the system's default operating environment is still Dalvik.
The mechanism of ART is different from Dalvik. under Dalvik, every time the application is run, the bytecode needs to be converted to machine code via an instant compiler, which slows down the efficiency of the application, while in the ART environment, when the application is first installed, bytecode is pre-compiled into machine code, making it a true native application. This process is called precompilation (aot,ahead-of-time). In this case, the startup and execution of the application will become faster.
Based on some benchmark tests, the new operating environment can halve the execution time of most applications. This means that applications with high CPU consumption and long running times can be completed more quickly, while general applications can be smoother, such as smoother animations and more immediate touch feedback. On multi-core processors, in most cases only a small number of cores can be activated, or the ARM's big will be better utilized. LITTLE architecture. In addition, it will significantly improve battery life and system performance.
Precompilation also brings some drawbacks. on the one hand, machine code occupies a larger storage space . After the bytecode becomes machine code, it may increase by 10%-20%, but in an app package, the code that can be executed is often just a part of it. For example, the latest Google + APK is 28.3 MB, but the code is only 6.9 MB. on the other hand, the installation time of the application becomes longer . As for how much time to extend, depending on the application itself, some complex apps like Facebook and Google + will keep you waiting longer.
On the whole, ART's merits are far beyond its shortcomings. After all, battery life and application run smoothly are more important in the elements that affect the user experience. We still don't know when ART will replace Dalvik, but the Androidpolice website says Google has been secretly developing for two years. Android out of the hope of stalling, it seems to be it.
Art:android out of the hope of stalling?