Hello! What is the best practice to deal with modifier chain creation for each recomposition? Remember? Or there are any compiler optimizations?
z
Zach Klippenstein (he/him) [MOD]
10/19/2022, 3:24 PM
Start with just passing modifiers, don’t worry about remember. Then benchmark/profile, if modifier creation is a bottleneck, explore options like remembering them. However, there is a major modifier refactor that should make remembering them virtually unnecessary in the next year or so.
p
PHondogo
10/19/2022, 3:30 PM
Thanks, Zach! Do you have any link to read more about this refactoring?
c
Corey
10/19/2022, 3:31 PM
Zach, do any of your blogpost about Compose talks about benchmarking/profiling Composables?
z
Zach Klippenstein (he/him) [MOD]
10/19/2022, 5:00 PM
None of mine do, but there’s other ones that cover those topics.
Zach Klippenstein (he/him) [MOD]
10/19/2022, 5:02 PM
i just googled “profiling compose” and a whole bunch of relevant content came up
Zach Klippenstein (he/him) [MOD]
10/25/2022, 8:33 PM
Thanks, Zach! Do you have any link to read more about this refactoring?