Adapt micro benchmark

Summary:
- adds more property assignments
- reduces the number of layout roots that exist simultanously

Reviewed By: pasqualeanatriello

Differential Revision: D8989389

fbshipit-source-id: 6a0ac800a4caad61a2f4bf98caa314855b70875f
This commit is contained in:
David Aurelio
2018-08-02 03:50:15 -07:00
committed by Facebook Github Bot
parent 292bfed102
commit 0e99980206
2 changed files with 12 additions and 13 deletions

View File

@@ -385,6 +385,9 @@ jlong jni_YGNodeCloneNoProps(
}
void jni_YGNodeFree(alias_ref<jobject> thiz, jlong nativePointer) {
if (nativePointer == 0) {
return;
}
const YGNodeRef node = _jlong2YGNodeRef(nativePointer);
delete reinterpret_cast<JNINodeContext*>(node->getContext());
YGNodeFree(node);