commit | 307c48d6303567db01394dac68c28b642de63bb4 | [log] [tgz] |
---|---|---|
author | Sean McQuillan <seanmcq@google.com> | Fri Aug 19 11:08:05 2022 -0700 |
committer | Sean McQuillan <seanmcq@google.com> | Fri Aug 19 13:42:57 2022 -0700 |
tree | 56916ea599215d0e994048beff2938cb8376e061 | |
parent | 60b7a010f4c675d23d6ed1696d2ded6fb77bf22d [diff] |
[TextBenchmark] Benchmark theoretical baselines (floor) Benchmark theoretical minimum possible cost for Text: - EmptyLayoutBaseline - empty layout determined by text size - StaticLayoutBaseline - minimum cost for laying out (cached) text These baselines are useful when evaluating potential upside from various optimizations to Text(). However, they do not represent a realistic implementation of Text() and will always be more performant than any possible implementation of Text(). ``` 161,073 ns 97 allocs trace AllAppsEmptyLayoutBaselineBaseline.recomposeOnly[size=2] 372,952 ns 128 allocs trace AllAppsEmptyLayoutBaselineBaseline.recomposeMeasureLayout[size=2] 190,102 ns 101 allocs trace AllAppsEmptyLayoutBaselineBaseline.recomposeOnly[size=16] 413,750 ns 132 allocs trace AllAppsEmptyLayoutBaselineBaseline.recomposeMeasureLayout[size=16] 208,272 ns 105 allocs trace AllAppsEmptyLayoutBaselineBaseline.recomposeOnly[size=32] 443,551 ns 136 allocs trace AllAppsEmptyLayoutBaselineBaseline.recomposeMeasureLayout[size=32] 231,720 ns 109 allocs trace AllAppsEmptyLayoutBaselineBaseline.recomposeOnly[size=64] 491,478 ns 140 allocs trace AllAppsEmptyLayoutBaselineBaseline.recomposeMeasureLayout[size=64] 87,280 ns 38 allocs trace AllAppsStaticLayoutBaseline.constructLayoutDraw[size=2] 105,019 ns 38 allocs trace AllAppsStaticLayoutBaseline.constructLayoutDraw[size=16] 123,191 ns 38 allocs trace AllAppsStaticLayoutBaseline.constructLayoutDraw[size=32] 158,273 ns 38 allocs trace AllAppsStaticLayoutBaseline.constructLayoutDraw[size=64] 249,290 ns 113 allocs trace ChatAppEmptyLayoutBaselineBaseline.recomposeOnly[size=256] 535,818 ns 144 allocs trace ChatAppEmptyLayoutBaselineBaseline.recomposeMeasureLayout[size=256] 272,061 ns 117 allocs trace ChatAppEmptyLayoutBaselineBaseline.recomposeOnly[size=512] 555,766 ns 148 allocs trace ChatAppEmptyLayoutBaselineBaseline.recomposeMeasureLayout[size=512] 377,175 ns 39 allocs trace ChatAppsStaticLayoutBaseline.constructLayoutDraw[size=256] 665,131 ns 38 allocs trace ChatAppsStaticLayoutBaseline.constructLayoutDraw[size=512] ``` Bug: b/239104335 Test: Is a test Change-Id: I5cdf662feb373243ea1decd6c4f08489c2cd1b97
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()
, jcenter()
, or mavenCentral()
. We store copies of these dependencies to have hermetic builds. You can pull in a new dependency using our importMaven tool.