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

@ -738,10 +738,9 @@ export type PropertyAliases = {
* Store the runtime input or output names for all the directives.
*
* i+0: directive instance index
* i+1: publicName
* i+2: privateName
* i+1: privateName
*
* e.g. [0, 'change', 'change-minified']
* e.g. [0, 'change-minified']
*/
export type PropertyAliasValue = (number | string)[];