Afzal Najam

    Afzal Najam

    1 year ago
    A question popped into my mind recently: how deep does the view hierarchy of Composables have to be to notice any performance hit?
    jim

    jim

    1 year ago
    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.
    Afzal Najam

    Afzal Najam

    1 year ago
    Thanks Jim, that's very encouraging!
    ian.shaun.thomas

    ian.shaun.thomas

    1 year ago
    You should always calculate PI on the UI thread 😏