IT Home reported on January 29 that Google recently launched version 1.6 for the Android native UI toolkit Jetpack Compose. This version mainly improves performance and is said to have significant improvements in "page scrolling performance" and "startup speed". In addition, Google also introduced a "stable" flag for the Compose compiler and made improvements in fonts. IT Home noticed that researchers have improved the memory allocation and lazy initialization capabilities of Jetpack Composed, thereby providing effective performance improvements for all APIs of the Compose compiler. Users can see visible performance improvements in APIs such as "text", "clickable elements", and "lazy loading lists". Officials claim that the performance of Jetpack Compose 1.6 has been comprehensively improved , claiming that "page scrolling performance has increased by 20%. The startup time has been shortened by about 12%" , allowing users to develop more smoothly. In addition, Google has added a labeling option called "stable" to the Compose compiler, allowing users to mark any class or library as "stable" . It is said that without sacrificing developer flexibility, the Compose compiler can intelligently determine when the UI needs to be reassembled (automatically refreshed) through marking, thereby improving application performance. Google also said that the code generated by the Compose compiler plugin has also been improved. Because the Compose compiler tracks the state object of Compose to determine which items need to be reassembled when the state value changes. However, Google mentioned that many of the state values in the above content will only be read once, and some state values have never been read, but they will still be frequently tracked and reorganized, resulting in performance loss . Therefore, Google introduced a feature called Intrinsic Remember, which claims to be able to record the remember function of the state object, so as to reorganize only "the items that should be reorganized" and avoid unnecessary re-rendering. In addition to performance updates, Google has also improved the default font padding capabilities of Jetpack Compose, turning off the outdated includeFontPadding character spacing property by default, making the text layout "more in line with design specifications." ▲ Image source: Google official press release (the same below) The UI toolkit also supports non-linear font scaling to improve text readability and accessibility; and introduces platform-level drag and drop capabilities , allowing users to drag file contents from one application to another, which is somewhat similar to Hammer's OneStep and Honor's Anywhere Door function. |
<<: iOS 17.3 battery life test for various devices, a retirement version!
The Hubble Space Telescope (hereinafter referred ...
[[334870]] Android, developed by Google, is the w...
Information flow advertising style - vertical vid...
How many friends found me because they wanted to ...
Children are not divided into big or small, we ar...
China's space station construction It is the ...
The essence of marketing is communication. If the...
What should I pay attention to when renting a ser...
[[149252]] WeChat has become a tool that people r...
Temperatures have risen in many places recently I...
Professional investors, leading the combination o...
I believe that everyone has had the experience of...
Increasing fans is just a natural process. If you...
According to foreign media reports, due to the de...
Product retention is similar to product onboardin...