perf(ivy): avoid megamorphic reads during property binding (#32574)

While determining a property name to bind to we were checking a mapping object
resulting in the megamorphic read. Replacing such read with a series of if checks
speeds up rproprty update benchmark ~30% (~1400ms down to ~1000ms).

PR Close #32574
This commit is contained in:
Pawel Kozlowski
2019-09-10 12:10:44 +02:00
committed by Matias Niemelä
parent ea378a993a
commit fcdd06896e
2 changed files with 18 additions and 12 deletions

View File

@ -5,9 +5,6 @@
{
"name": "ANIMATION_PROP_PREFIX"
},
{
"name": "ATTR_TO_PROP"
},
{
"name": "BINDING_INDEX"
},
@ -1085,6 +1082,9 @@
{
"name": "makeParamDecorator"
},
{
"name": "mapPropName"
},
{
"name": "markAsComponentHost"
},