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!
"Where there is a question, there is an answ...
Just as the mobile phone market was bustling with ...
Haoze Yitan·New Opportunities for Upgrading Basic...
In Android, directly killing the application proc...
According to the latest data, South Korea's g...
1. Competitive product analysis 1. Choose competi...
Recently, in addition to the relatively serious lo...
My recent work requires me to study the user grow...
Recently a friend told me that it is not easy to ...
Nowadays, many people find that as long as the sh...
As an operator , you always need to keep in mind ...
Data analysis makes your sales boom come true Cou...
WeChat Mini Programs are favored by many companie...
Preface I remember that when I was a sophomore, I...
In the war among many e-commerce giants, Pinduodu...