Performance best practices for Jetpack Compose

preview_player
Показать описание
Jetpack Compose can feel like magic, but what do you do when the magic isn't as performant as you want? Discover best practices in Jetpack Compose with regards to performance, common mistakes, and how to avoid them.

Resources:

Speakers: Chuck Jazdzewski, Ben Trengrove

Watch more:

#GoogleIO #Featured #JetpackCompose
Рекомендации по теме
Комментарии
Автор

Legends say that even to this day, Chuck is still waving to you.
On a more serious note, great content, it was very helpful!

kenbX
Автор

Very usefull video. Coming back here to watch some tricks again and again, so I decided to write some timecodes to help myself and maybe some of you too:
1:00 - Configuration
1:55 - Something to remember
3:57 - LazyList Key
5:47 - derivedStateOf
8:10 - Compose primary phases
9:57 - defer reading state
11:36 - Running backwards (Backwards write)
15:26 - Covering your bases (Baseline profiles)

carapas_
Автор

More of this! This is extremely helpful. Personally I'd like more tips on to spot and avoid unnecessary recompositions.

IncompleteTheory
Автор

More of this, please. Something I have learned is one learns quite a lot about a new language/platform when one programs for performance.

paulroos
Автор

This is a very helpful video for compose optimizations, appreciate it.

jaya-surya-t
Автор

Thank you for this video and to the dev team, keep going, you are on the good way !

hocinehope
Автор

Thank you so much for this video! Enjoyed to the max

theapache
Автор

Great content! While watching this I was litterally dealing with startup jank, that is probably now just the JIT.

Mrdresden
Автор

The uggliest thing about Compose and which applies to each new stuff is when it allows you to do something which is not recommended to do.

Daaaaaaavid
Автор

The most completely class about compose tricks... thank you so much :)

VirgilioSolano
Автор

Amazing, short and on the point, keep up the good work

nikolayrogchev
Автор

This is good stuff. I owe you guys some ☕

hardlife
Автор

Is this information available in a blog post or in the compose documentation?

minasmina
Автор

We want more of this from Engineers from inside.

arjunbhat
Автор

This was a really information dense video! But very well presented nonetheless

GakisStylianos
Автор

4:14 if item 5 and 4 are swapped, then only they should be recomposed, right? Items 1, 2, 3, 6, 7 and subsequent items will keep their indexes which are used as keys. Do we need a LazyList Key in this case?

Maksim-
Автор

So the macrobenchmark library let's us see what the improvements might be for the user in the release build but does not guarantee it? And also we do not need to do anything to ensure baseline profiles are added to the app, it's added by default. Is that right?

anudeepananth
Автор

Why was this not highlighted in first place

nayandhabarde
Автор

If I use Canvas(modifier = ..) in Compose and pass value which frequently changes, should I use drawBehind method? And how? Put Canvas in this method?

FreedivingTrainer
Автор

Do you really need R8 enabled? Will Compose be slower without it than the xml view system?

xpopcornx