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:
Pawel Kozlowski
2019-11-13 17:06:54 +01:00
committed by Alex Rickabaugh
parent 5aec1798eb
commit da0c372fdf
6 changed files with 20 additions and 23 deletions

View File

@ -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);