commit | cacdbcfc67d700868e115a0ed7a78df2b1aed38d | [log] [tgz] |
---|---|---|
author | Viktor Yakovel <[email protected]> | Wed Mar 26 08:36:49 2025 +0000 |
committer | Viktor Yakovel <[email protected]> | Fri Apr 11 11:25:19 2025 +0000 |
tree | d8b0635672b0b77564051293b4b2c5da1224587d | |
parent | 4d469332cea268911e62bcf9f6243b2a763bce09 [diff] |
Do not recreate path on every draw in BackgroundPainter Performance increase isn't obvious from the benchmark testing, but this change reduces amount of garbage Paths together with their native part clean ups TransformingLazyColumnNotificationsBenchmarkTest benchark: * Before TransformingLazyColumnNotificationsBenchmarkTest_start[compilation=BaselineProfile] gfxFrameJankPercent min 0.7, median 0.7, max 1.4 gfxFrameTime50thPercentileMs min 11.0, median 11.0, max 22.0 gfxFrameTime90thPercentileMs min 16.0, median 18.0, max 30.0 gfxFrameTime95thPercentileMs min 19.0, median 25.0, max 40.0 gfxFrameTime99thPercentileMs min 26.0, median 32.0, max 48.0 gfxFrameTotalCount min 140.0, median 144.5, max 166.0 memoryHeapSizeLastKb min 4,470.0, median 9,259.0, max 17,792.0 memoryRssAnonLastKb min 55,296.0, median 60,672.0, max 70,144.0 memoryRssFileLastKb min 102,400.0, median 103,928.0, max 104,920.0 * After TransformingLazyColumnNotificationsBenchmarkTest_start[compilation=BaselineProfile] gfxFrameJankPercent min 0.6, median 0.7, max 0.7 gfxFrameTime50thPercentileMs min 11.0, median 11.0, max 21.0 gfxFrameTime90thPercentileMs min 16.0, median 18.0, max 32.0 gfxFrameTime95thPercentileMs min 21.0, median 25.0, max 36.0 gfxFrameTime99thPercentileMs min 26.0, median 30.0, max 48.0 gfxFrameTotalCount min 140.0, median 143.0, max 162.0 memoryHeapSizeLastKb min 4,450.0, median 9,191.0, max 17,676.0 memoryRssAnonLastKb min 55,296.0, median 60,688.0, max 70,144.0 memoryRssFileLastKb min 102,912.0, median 103,898.0, max 104,704.0 Bug: 376693576 Relnote: N/A Test: manual vefirication in AHAT to see decreased number of Path objects Change-Id: Ie011e0e54852bb0ab43bd9f85e1e4cde5884c1a8
Jetpack is a suite of libraries, tools, and guidance to help developers write high-quality apps easier. These components help you follow best practices, free you from writing boilerplate code, and simplify complex tasks, so you can focus on the code you care about.
Jetpack comprises the androidx.*
package libraries, unbundled from the platform APIs. This means that it offers backward compatibility and is updated more frequently than the Android platform, making sure you always have access to the latest and greatest versions of the Jetpack components.
Our official AARs and JARs binaries are distributed through Google Maven.
You can learn more about using it from Android Jetpack landing page.
For contributions via GitHub, see the GitHub Contribution Guide.
Note: The contributions workflow via GitHub is currently experimental - only contributions to the following projects are being accepted at this time:
When contributing to Jetpack, follow the code review etiquette.
We are not currently accepting new modules.
Head over to the onboarding docs to learn more about getting set up and the development workflow!
Our continuous integration system builds all in progress (and potentially unstable) libraries as new changes are merged. You can manually download these AARs and JARs for your experimentation.
Before uploading your first contribution, you will need setup a password and agree to the contribution agreement:
Generate a HTTPS password: https://android-review.googlesource.com/new-password
Agree to the Google Contributor Licenses Agreement: https://android-review.googlesource.com/settings/new-agreement
AndroidX uses git to store all the binary Gradle dependencies. They are stored in prebuilts/androidx/internal
and prebuilts/androidx/external
directories in your checkout. All the dependencies in these directories are also available from google()
, or mavenCentral()
. We store copies of these dependencies to have hermetic builds. You can pull in a new dependency using our importMaven tool.