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:

committed by
Matias Niemelä

parent
ea378a993a
commit
fcdd06896e
@ -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"
|
||||
},
|
||||
|
Reference in New Issue
Block a user