Memory fusion “black technology” has already been used on the Android platform

LG, which has been speculated to be closing its cell phone operations for some time, has now publicly announced that it would exit the market. This, along with the previous launches of several existing vendors, has resulted in the whole industry being more concentrated. In reality, whether it’s LG or HTC, the lack of product competition is generally the reason why their products are becoming smaller and smaller in the market. Cell phone manufacturers have created a series of “black inventions” to avoid falling behind in the fierce consumer environment and to improve the competitiveness of their own devices.

Before we address this question, it’s important to understand what memory and flash memory are. Memory and flash memory are components that are used to store data in the traditional context, but they can be separated into two divisions based on their use, which are known as RAM and ROM. RAM, also known as random access memory, is a volatile memory that is one of them. When the power is turned off, the information contained in RAM is destroyed. As a result, it’s mostly used to store data for short-term use and as a data buffer during device service.

Many colleagues, on the other hand, could have found that the number of applications that can run at the same time on a 10GB memory model isn’t any higher than in the 3GB or 4GB period. This isn’t a trick of the light. In reality, the “Andy-Beer theorem,” which states that the output gained by the hardware is easily absorbed by the software, perfectly explains this phenomenon. Established hardware manufacturers are hoping to find new selling points, while developers are hoping to increase their growth. Android phones are often the “root of illness that falls in the mother’s womb” due to efficient “selfishness.”

The United States Supreme Court recently ruled that Google’s copying of Oracle’s proprietary Java API code is fair use, effectively ending the ten-year relationship between Android and its programming language Java. In reality, Google selected Java as the programming language for Android in the early years because of its superior cross-platform features and binary delivery and packaging capability.

Since the Android device must open the virtual machine at runtime and then dynamically compile the application’s Java code into machine code that can be immediately recognized by the SoC, but in a programming language like Java, memory allocation is handled automatically by the software. GC is in charge of memory release (Garbage Collection). While the distinction of income and cost simplifies developers’ work, this “two-line battle” approach raises the workload of JVM, Dalvik, and ART, a collection of Java virtual machines, because this is a Java program as well. One of the factors contributing to the slow running pace.

Why can Apple iPhones have a smaller memory footprint than Android versions but still running smoothly? Both ObjectiveC and Swift, which are the most commonly used in iOS APP development, are Native languages that do not use the GC mechanism, which removes increased resource overhead and naturally increases iOS’ operating performance.

In short, because of the speed limitations of the Java programming language used by Android, developers would naturally use as much memory as possible to increase the APP’s performance as much as possible. However, as this APP needs to take a little more space in the cell phone, and that APP wants to consume a little more space, the amount of APPs that can run at the same time does not change as the ram increases, implying that the hardware has not improved. The promotion was quietly swallowed by the program in this manner.

Memory expansion technology is unquestionably essential for low-end models with reduced memory space. However, this technology cannot be considered “black technology” in the strict sense, but rather “science study and archaeology,” since Android has two big solutions to the loss of memory as early as the Android 2.2 period, that is, ten years ago: zram and swap. Technologies that are related.

It is known that zram and swap are two technological paths that vary slightly. To put it another way, swap is Windows’ virtual memory technology that uses ROM as RAM. Its benefits and drawbacks are close to those of virtual memory, allowing the machine to run several programs or programs with higher memory needs at the same time, but the reading and writing speed is slower than the memory, and this way of constantly erasing and writing the flash memory is often easier to slow down and causing stalling.

Zram divides a portion of the physical memory, compresses the background and foreground applications’ unused code, decompresses the data as desired, and increases memory invisibly by decreasing data size. However, the cost of zram is that compressing data allows the CPU to calculate and classify which codes in the APP are not working, lowering the SoC’s operating performance.

Of course, this does not imply that cell phone vendors are re-exposing zram and swap now, which is irrelevant. In reality, in the 5G period, vendors are also more sensitive to the background residency of the Smartphone in the device strategy, and would be more aggressive to explicitly terminate the operation of the program that the customer has just cut out of the background, in order to improve the battery life of the cell phone. This is widely referred to as “killing the past,” and Google intends to implement the “cache application freeze” feature on Android 11.

After all, this effect is extremely inconvenient for consumers who regularly execute multitasking tasks.

However, for high-end models with large-capacity memory, zram and swap are not needed where physical memory is available, or it is preferable to avoid using such technologies for the experience. As a result, while today’s memory flash fusion or memory expansion technologies can be very useful for consumers of low-end devices, flagship models do not need as many attempts if they do not have special needs.