In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article analyzes "how to analyze the ART mechanism of Android4.4". The content is detailed and easy to understand. Friends who are interested in "how to analyze the ART mechanism of Android4.4" can follow the editor's train of thought to read it slowly and deeply. I hope it will be helpful to you after reading. Let's learn more about "how to analyze the ART mechanism of Android4.4" with the editor.
512MB memory can run Android4.4 smoothly?
The "butter plan" of Android 4.1makes the system and applications run more smoothly, while the "Project Svelte" of Android 4.2improves memory management, allowing the system to run smoothly on devices with low-end hardware configurations.
However, none of this solves the core problem, which is the application running environment. Dalvik VM efficiency is not *. Since Android 4.2, Google developers have introduced a new Android runtime environment, ART (which means Android Runtime). In the introduction to the official Android page, it is also called the new virtual machine) to replace the old Dalvik VM. It is now an experimental option, and the default operating environment of the system is still Dalvik. What changes will ART bring to Android?
The mechanism of ART is different from that of Dalvik. Under Dalvik, every time an application runs, the bytecode needs to be converted to machine code through the just-in-time compiler, which will slow down the efficiency of the application. In ART environment, the bytecode will be pre-compiled into machine code when the application is installed * * times, making it a real local application. This process is called AOT,Ahead-Of-Time. In this way, the startup and execution of applications will become faster.
According to some benchmarks, the new running environment can halve the execution time of most applications. This means that applications with high CPU consumption and long running time can be completed more quickly, while general applications can be smoother, such as smoother animation and more instant touch feedback. On multi-core processor devices, in most cases only a small number of cores need to be activated, or can make better use of ARM's big.LITTLE architecture. In addition, it will significantly improve the battery life and system performance.
Pre-compilation also brings some disadvantages. On the one hand, machine codes take up more storage space. After the bytecode is changed to machine code, it may increase by 10% Mur20%, but in the application package, the executable code is often only part of it. For example, the Google+ APK of * * is 28.3MB, but the code is only 6.9MB. On the other hand, the installation time of applications will be longer. As for how much time will be extended, depending on the application itself, some complex applications such as Facebook and Google+ will make you wait longer.
Generally speaking, the advantages of ART far outweigh its disadvantages. After all, battery life and smooth running of applications are more important among the factors that affect the user experience. We still don't know when ART will replace Dalvik, but AndroidPolice says Google has been secretly developed for two years. Android's hope of getting rid of Catton seems to be it.
Android4.4 can get rid of stutter by taking ART.
Compared with iOS, Android's user experience got off to a relatively bad start. For a long time, the interface has been ugly duckling, Catton is also can not get rid of the pain. However, with the all-out promotion of Google and the response of hardware manufacturers, Android has gradually grown over various obstacles.
In this process, Google is also undergoing major changes. It has gradually changed from a company that focuses only on data to a company that focuses on design and user experience. Since Android 4. 0, Android has its own design language and application design guidance. At the same time, Google is also working on solving the Catton problem. The "butter plan" of Android 4.1and the TRIM support of Android 4.3significantly improve the smoothness of the system, while the "Project Svelte" of Android 4.4.improves memory management, enabling the system to run smoothly on devices with low-end hardware configuration.
However, in order to solve the application stutter, we still have to focus on the core problem, that is, the application running environment. Dalvik VM is not the most efficient. Since Android 4. 4, Google developers have introduced a new Android runtime environment, ART (meaning Android Runtime). In the introduction to the official Android page, it is also called the new virtual machine) to replace the old Dalvik VM. It is now an experimental option, and the default operating environment of the system is still Dalvik. What changes will ART bring to Android? This is analyzed on the AndroidPolice website.
The mechanism of ART is different from that of Dalvik. In Dalvik, every time an application runs, the bytecode needs to be converted to machine code through a just-in-time compiler, which slows down the efficiency of the application, while in the ART environment, when the application is installed for the first time, the bytecode is pre-compiled into machine code, making it a real local application. This process is called AOT,Ahead-Of-Time. In this way, the startup and execution of the application will become faster.
According to some benchmarks, the new running environment can halve the execution time of most applications. This means that applications with high CPU consumption and long running time can be completed more quickly, while general applications can be smoother, such as smoother animation and more instant touch feedback. On multi-core processor devices, in most cases only a small number of cores need to be activated, or can make better use of ARM's big.LITTLE architecture. In addition, it will significantly improve the battery life and system performance.
On how to analyze the ART mechanism of Android4.4 is shared here, I hope that the above content can make you improve. If you want to learn more knowledge, please pay more attention to the editor's updates. Thank you for following the website!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.