Experiment with concept of YGRemeasureFunc #423

Open
opened 2017-02-22 03:45:12 -08:00 by emilsjolander · 0 comments
emilsjolander commented 2017-02-22 03:45:12 -08:00 (Migrated from github.com)

Sometimes cached measurements cannot be re-used so we must re-measure a node. Currently we do this by calling the node's measure function again. This is suboptimal for text. In a lot of cases (if the constraints have been relaxed) we can know the new size of the text without calling measure. This requires a YGRemeasureFunc, by default it would just delegate to YGMeasureFunc but for text nodes it could have a more optimal implementation.

Sometimes cached measurements cannot be re-used so we must re-measure a node. Currently we do this by calling the node's measure function again. This is suboptimal for text. In a lot of cases (if the constraints have been relaxed) we can know the new size of the text without calling measure. This requires a `YGRemeasureFunc`, by default it would just delegate to `YGMeasureFunc` but for text nodes it could have a more optimal implementation.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DaddyFrosty/yoga#423
No description provided.