This change assures that data structures related to initial inputs (ones set from static attributes) are created only once (during the first template pass) and no additional runtime checks are done for subsequent passes. Additionally this commit changes the data structure used by initial inputs on TNode - previously initial inputs for a directive were stored at the directive index in LView. This meant that an array holding initial inputs was relativelly big and had many null elements (as placeholders for elements, directives, injector etc.). After the change we only create an array of a size equal to a number of directives matched on a given TNode. For the `directive_instantiate` benchmark it boils to allocating a 1-element array vs. 100-element array previously. PR Close #33195
feat: add a flag in bootstrap to enable coalesce event change detection to improve performance (#30533)
feat: add a flag in bootstrap to enable coalesce event change detection to improve performance (#30533)
Angular
Angular is a development platform for building mobile and desktop web applications using TypeScript/JavaScript and other languages.
Quickstart
Changelog
Learn about the latest improvements.
Want to help?
Want to file a bug, contribute some code, or improve documentation? Excellent! Read up on our guidelines for contributing and then check out one of our issues in the hotlist: community-help.
Description
Languages
TypeScript
68.6%
HTML
12.8%
JavaScript
8.4%
Pug
7%
Starlark
1.4%
Other
1.7%