Android native UI toolkit Jetpack Compose gets version 1.6 update: page scrolling performance improved by 20%, "stable" mark introduced, etc.

Android native UI toolkit Jetpack Compose gets version 1.6 update: page scrolling performance improved by 20%, "stable" mark introduced, etc.

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!

>>:  Volcano Engine live4D volumetric video solution selected for SIGGRAPH Asia 2023, supports interactive experience

Recommend

Do educational and training institutions need to develop private domains?

It is an indisputable fact that the customer acqu...

11 ways to increase product conversion rate!

Improving conversion rate is one of the core task...

I give five thumbs up and four thumbs down to the TV Game Lobby

For ordinary users, the TV gaming experience does ...

Developers are pleased: Apple Watch software performed well on Christmas

This is a good sign for 2016. What apps do you us...

How to operate WeChat communities and UGC communities?

Many people who are new to operations often confu...

The tip of the iceberg of "infrastructure maniac" - Xiangli Expressway

As a person who grew up in the countryside, from ...

The fourth course of Qihangge video account

Course Catalog Dagang: 1. Video account recommend...

How do you judge whether the copy you write is good or bad?

How do you judge whether your copywriting is good...