Skip to content

Conversation

@rozele
Copy link
Contributor

@rozele rozele commented Oct 30, 2024

Summary:
X-link: facebook/yoga#1734

X-link: facebook/litho#1030

Profiling in a test app with many undefined lengths shows this saves roughly 33% of time spent in Yoga.

Changelog

[General][Fixed] Reduce amount of time spent in Yoga by reusing statically defined values in StyleLength::getLength()

Reviewed By: yungsters

Differential Revision: D65207753

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 30, 2024
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D65207753

Summary:

X-link: facebook/yoga#1734

X-link: facebook/litho#1030

Profiling in a test app with many undefined lengths shows this saves roughly 33% of time spent in Yoga.

## Changelog

[General][Fixed] Reduce amount of time spent in Yoga by reusing statically defined values in StyleLength::getLength()

Reviewed By: yungsters, mdvacca

Differential Revision: D65207753
rozele added a commit to rozele/yoga that referenced this pull request Oct 30, 2024
Summary:
X-link: facebook/react-native#47305


X-link: facebook/litho#1030

Profiling in a test app with many undefined lengths shows this saves roughly 33% of time spent in Yoga.

## Changelog

[General][Fixed] Reduce amount of time spent in Yoga by reusing statically defined values in StyleLength::getLength()

Reviewed By: yungsters, mdvacca

Differential Revision: D65207753
rozele added a commit to rozele/litho that referenced this pull request Oct 30, 2024
Summary:
X-link: facebook/react-native#47305

X-link: facebook/yoga#1734


Profiling in a test app with many undefined lengths shows this saves roughly 33% of time spent in Yoga.

## Changelog

[General][Fixed] Reduce amount of time spent in Yoga by reusing statically defined values in StyleLength::getLength()

Reviewed By: yungsters, mdvacca

Differential Revision: D65207753
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D65207753

@javache
Copy link
Member

javache commented Mar 21, 2025

Closed internally

@javache javache closed this Mar 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants