You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,8 @@ The performance of layout and drawing is almost equivalent to a single Flex or S
34
34
performance of constraint calculation is roughly 0.01 milliseconds (layout of general complexity, 20
35
35
child elements). Constraints are only recalculated after they have changed.
36
36
37
+
ConstraintLayout itself can be arbitrarily nested without performance issues, each child element in the render tree is only laid out once, and the time complexity is O(n) instead of O(2n) or worse.
38
+
37
39
A smaller Widget tree leads to less build time and a smaller Element tree. A very flat layout
38
40
structure results in a smaller RenderObject tree and less rendering time. One thing most people tend
39
41
to overlook is that complex nesting can cause build times to sometimes exceed render times.
0 commit comments