Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use static values for undefined and auto lengths #1030

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rozele
Copy link
Contributor

@rozele rozele commented Oct 30, 2024

Summary:
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
Copy link
Contributor

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

rozele added a commit to rozele/react-native-macos that referenced this pull request 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
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
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/react-native-macos that referenced this pull request 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, mdvacca

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants