6 years ago (2015-02-26)  Algorithm language |   First to comment  10 
post score 0 times, average 0.0

Why doesn't the Android machine have a smooth iPhone?

User "foto tomato":

Why iPhone6 ​​memory is only 1GB, and many Android machines are quite high, or do you think the iPhone is smooth?

Tencent Technology:

I believe many netizens have similar questions and feel that Android phones are inferior to iPhone in fluency.Not to mention some low-profile Android phones, even the latest version of the Android system's flagship phone will feel less than the smoothness of the iPhone, so some people use it to judge the Android phone is not good.

In fact, this is the difference between the two systems.

Different rendering mechanisms

The fundamental reason why Android does not have iOS fluency is that iOS UI rendering uses real-time priority, and Android UI rendering follows the normal priority of the main thread of the traditional computer model.

Popular point of view is that iOS has the highest priority on the screen reaction. When the user touches the screen, the system will give top priority to the screen display this level, immediately give an animation effect, and then deal with media, services, core architecture.

And Android is the pursuit of the process priority, after the screen touch screen display and animation effects on the priority after comparison.Also open the same web page, Android phone will directly load the entire web page while rendering HTML, which undoubtedly increases the pressure on the processor.So for Android, an efficient dual-core processor is very important.

The UI rendering process in iOS has an absolute priority. When the user touches the touch screen of the iPhone, all the processes in iOS will stop. The UI thread intercepts all events. The system will use all the resources to render the UI process. Ensure the real-time rendering priority of the user interface.

In the Android system, the priority level of the UI rendering process is not so high, which means that when you touch the Android phone screen, the system background program does not stop, and still continue to run, such as download and check SMS, so The resources obtained by the system UI are not enough. This is why the Android system is not smooth.

Different background mechanism

The background of the Android phone is the real background. Like a PC, the application is kept in RAM. When you use the HOME key to exit the application, the program is not actually exited but is hung in the background. Why did we turn off the chat? The software can still receive notifications because it is resident in system memory.Including some spam ads that are usually received, but also because there are programs running in the background.

Therefore, this leads to a phenomenon. From the point of view of memory usage, Android has just low memory usage when it is turned on. If the memory operation is not performed, one day of normal use, the memory usage will reach 75% or more.The higher the memory consumption, the lower the fluency of use, so Android machines need more RAM to improve the user experience.

iOS, in fact, is a pseudo background that is used. When the user HOME key exits the application, iOS actually closes the program and retains only the image entry of the application. It will only record the last running data of the application in RAM by default.

The reason why iOS can also receive push is because when the user chooses to enable push from the application, the system will add some processes. These processes will receive information from the Apple server and then send it to the user through the server. The Apple server is here. To the role of transit.Because of this series of mechanisms, even if the iPhone's configuration is much lower than similar Android machines, iOS still gives people a more fluid feel.

iPhone is more efficient than Android

In addition, the Android programming language is Java, which is characterized by its versatility and low efficiency.iOS is Objective-C, which is highly specific and efficient.

iOS system itself is optimized very well, and the program is also directly executed, so it is very efficient.The Android system is executed by a Java virtual machine. The system needs to use a lot of memory in exchange for execution speed. That is, it takes a large circle to execute the program, so the efficiency is much lower.

Manufacturers like to optimize the iPhone

Due to the closed nature of iOS, apps in the App Store are executed on iPhones and other products. The hardware utilization efficiency is very high, and the resolution size, hardware update, and other parameters are also relatively stable, and the optimization work is also easy to carry out, and thus the iPhone is The combination of the App and the hardware is much higher than Android.

Android phone hardware configuration changes every day, developers can not develop for all machine models, can only be tested on the more mainstream machines and ensure smooth operation, so many domestic low-end Android phone is difficult to get smooth Experience.



Original from: Tencent Technology, Forward Please specify the source!

Post comment


No Comment


Forget password?