Optimize the performance of Origami

Summary: With this flag the the workflow successfully passed.

Reviewed By: emilsjolander

Differential Revision: D6619293

fbshipit-source-id: c1632efd97f47696b7f8bb1b3e763de92c707287
This commit is contained in:
Pritesh Nandgaonkar
2017-12-22 06:43:32 -08:00
committed by Facebook Github Bot
parent 7d01f4d8b1
commit 61dc10ef66
3 changed files with 36 additions and 39 deletions

View File

@@ -1803,7 +1803,7 @@ static bool YGNodeFixedSizeSetMeasuredDimensions(const YGNodeRef node,
}
static void YGZeroOutLayoutRecursivly(const YGNodeRef node) {
memset(&(node->getLayoutRef()), 0, sizeof(YGLayout));
memset(&(node->getLayout()), 0, sizeof(YGLayout));
node->setHasNewLayout(true);
YGCloneChildrenIfNeeded(node);
const uint32_t childCount = YGNodeGetChildCount(node);
@@ -3341,7 +3341,7 @@ bool YGLayoutNodeInternal(const YGNodeRef node,
const bool performLayout,
const char *reason,
const YGConfigRef config) {
YGLayout* layout = &node->getLayoutRef();
YGLayout* layout = &node->getLayout();
gDepth++;