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
Avoid repeated allocations in getChildOffsetRelativeToRoot (#55274)
Summary:
Changelog: [Internal]
Refactors `getChildOffsetRelativeToRoot()` to use a static `Rect` field instead of allocating a new `Rect` and `int[]` on every call. Since this is a private method, we can return the `Rect` directly to avoid the extra `int[]` allocation.
This addresses the code review feedback on D90988373.
Reviewed By: javache
Differential Revision: D91230611
0 commit comments