update:yoga-caching-algorithm #1681
Reference in New Issue
Block a user
No description provided.
Delete Branch "admirsaheta/main"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary:
The pull request optimizes the
canUseCachedMeasurement
function in the Yoga library by reducing redundant computations, combining conditions where possible, and enhancing readability and performance. These changes aim to improve the efficiency of the function without altering its overall implementation or behavior.Changelog:
[GENERAL][CHANGED] - Optimized the
canUseCachedMeasurement
function to reduce redundant computations and improve performance.Test Plan:
canUseCachedMeasurement
function before and after the optimization.The tests confirmed that the optimized function is more efficient while producing the same correct outputs.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
I’ve patched rn 0.74.3 with this change and I’ve encountered weird layout from time time on both iOS and Android.
The layout was tending to move upwards on the screen, eg a flex:1 view could move all the way up and only the bottom part was visible.
In another case on Android only I had 3 elements in a flex direction row alignitems center and the 2 right last elements were moved upwards again whille the left one was positioned fine.
Don’t know if something is missing on my end (maybe there are other yoga commits on 0.75 branch that accompany this one). I thought it worths mentioning it.
Can’t provide repro since my UI is extremely complex. The moment I removed the patch everything went back to normal.
cc: @NickGerleman
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.