-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
Make RawPropsParser::iterateOverValues more performant #45088
Conversation
This pull request was exported from Phabricator. Differential Revision: D58593492 |
Base commit: 4a8f0ee |
This pull request was exported from Phabricator. Differential Revision: D58593492 |
0646f58
to
f13fd4a
Compare
Summary: Pull Request resolved: facebook#45088 This diff should make iterator-style prop setting more performant. - It removes some layers of indirection. Now `ConcreteComponentDescriptor` calls into `setProp` directly. - On both platforms, we will use `folly::dynamic` parser, it seems it is slightly faster. - On Android, we will reuse `props->rawProps` parsed as a `folly::dynamic` representation, instead of parsing stuff twice. Changelog: [Internal] - This hasn't been rolled out to OSS yet. Reviewed By: sammy-SC Differential Revision: D58593492
This pull request was exported from Phabricator. Differential Revision: D58593492 |
Summary: Pull Request resolved: facebook#45088 This diff should make iterator-style prop setting more performant. - It removes some layers of indirection. Now `ConcreteComponentDescriptor` calls into `setProp` directly. - On both platforms, we will use `folly::dynamic` parser, it seems it is slightly faster. - On Android, we will reuse `props->rawProps` parsed as a `folly::dynamic` representation, instead of parsing stuff twice. Changelog: [Internal] - This hasn't been rolled out to OSS yet. Reviewed By: sammy-SC Differential Revision: D58593492
f13fd4a
to
193b7dd
Compare
Summary: Pull Request resolved: facebook#45088 This diff should make iterator-style prop setting more performant. - It removes some layers of indirection. Now `ConcreteComponentDescriptor` calls into `setProp` directly. - On both platforms, we will use `folly::dynamic` parser, it seems it is slightly faster. - On Android, we will reuse `props->rawProps` parsed as a `folly::dynamic` representation, instead of parsing stuff twice. Changelog: [Internal] - This hasn't been rolled out to OSS yet. Reviewed By: javache Differential Revision: D58593492
This pull request was exported from Phabricator. Differential Revision: D58593492 |
193b7dd
to
97e261b
Compare
Summary: Pull Request resolved: facebook#45088 This diff should make iterator-style prop setting more performant. - It removes some layers of indirection. Now `ConcreteComponentDescriptor` calls into `setProp` directly. - On both platforms, we will use `folly::dynamic` parser, it seems it is slightly faster. - On Android, we will reuse `props->rawProps` parsed as a `folly::dynamic` representation, instead of parsing stuff twice. Changelog: [Internal] - This hasn't been rolled out to OSS yet. Differential Revision: D58593492
Summary: Pull Request resolved: facebook#45088 This diff should make iterator-style prop setting more performant. - It removes some layers of indirection. Now `ConcreteComponentDescriptor` calls into `setProp` directly. - On both platforms, we will use `folly::dynamic` parser, it seems it is slightly faster. - On Android, we will reuse `props->rawProps` parsed as a `folly::dynamic` representation, instead of parsing stuff twice. Changelog: [Internal] - This hasn't been rolled out to OSS yet. Differential Revision: D58593492
This pull request has been merged in 1fda630. |
This pull request was successfully merged by @dmytrorykun in 1fda630. When will my fix make it into a release? | How to file a pick request? |
Summary:
This diff should make iterator-style prop setting more performant.
ConcreteComponentDescriptor
calls intosetProp
directly.folly::dynamic
parser, it seems it is slightly faster.props->rawProps
parsed as afolly::dynamic
representation, instead of parsing stuff twice.Changelog: [Internal] - This hasn't been rolled out to OSS yet.
Reviewed By: sammy-SC
Differential Revision: D58593492