A question popped into my mind recently: how deep ...
# compose
a
A question popped into my mind recently: how deep does the view hierarchy of Composables have to be to notice any performance hit?
j
Depends entirely on what you're doing in your composables. A tree of depth(1) is a problem if your composable function is calculating a precise value of
pi
inside its self. We've also seen very deep trees that had no problems. So, the answer is, it entirely depends.
🥧 1
👍 3
a
Thanks Jim, that's very encouraging!
i
You should always calculate PI on the UI thread 😏
😀 8