Skip to content

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