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
{{ message }}
Repository navigation
Flutter could use less sqrt(dx² + dy²) <= r and more dx² + dy² <= r² #187894
sqrt is much slower than x*x and there are a few places in codebase that could be optimized. Not sure I agree with the image, but on my microbenchmarks x*x got 70% faster (not 10x but still very big improvement!)
Pros: much faster.
Cons: code slightly harder to read (why is it multiplying twice or not doing sqrt?).
Activity
Avoid unnecessary work in `BoxDecoration` and `RenderPhysicalModel` (f…