perf(ivy): don't store public input names in two places (#33798)
Before this change a public name of a directive's input was stored in 2 places: - as a key of an object on TNode.index; - as a value of PropertyAliasValue at the index 1 This PR changes the data structure so the public name is stored only once as a key on TNode.index. This saves one array entry for each and every directive input. PR Close #33798
This commit is contained in:

committed by
Alex Rickabaugh

parent
5aec1798eb
commit
da0c372fdf
@ -442,7 +442,7 @@ function updateDirectiveInputValue(
|
||||
const inputs = tNode.inputs ![inputName] !;
|
||||
const initialValue = getInitialStylingValue(context);
|
||||
const value = normalizeStylingDirectiveInputValue(initialValue, newValue, isClassBased);
|
||||
setInputsForProperty(lView, inputs, value);
|
||||
setInputsForProperty(lView, inputs, inputName, value);
|
||||
setElementExitFn(stylingApply);
|
||||
}
|
||||
setValue(lView, bindingIndex, newValue);
|
||||
|
Reference in New Issue
Block a user