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!
Youth must struggle, and it is time to pursue dre...
It is an indisputable fact that the customer acqu...
Improving conversion rate is one of the core task...
For ordinary users, the TV gaming experience does ...
How to achieve the quality of a flagship phone wi...
This is a good sign for 2016. What apps do you us...
Many people who are new to operations often confu...
As a person who grew up in the countryside, from ...
1. Let’s start from watching the 007 series of mo...
The International Federation of Robotics (IFR) re...
If you want to sell goods on Douyin, in addition ...
Course Catalog Dagang: 1. Video account recommend...
This time, WeChat version 8.0.10 has been fully u...
How do you judge whether your copywriting is good...
We often see "warm tips" about hot pot ...