dcdb433b7d
This patch ensures that the `[style]` and `[class]` based bindings are directly applied to an element's style and className attributes. This patch optimizes the algorithm so that it... - Doesn't construct an update an instance of `StylingMapArray` for `[style]` and `[class]` bindings - Doesn't apply `[style]` and `[class]` based entries using `classList` and `style` (direct attributes are used instead) - Doesn't split or iterate over all string-based tokens in a string value obtained from a `[class]` binding. This patch speeds up the following cases: - `<div [class]>` and `<div class="..." [class]>` - `<div [style]>` and `<div style="..." [style]>` The overall speec increase is by over 5x. PR Close #33336 |
||
---|---|---|
.. | ||
directives | ||
i18n | ||
location | ||
pipes | ||
common.ts | ||
common_module.ts | ||
cookie.ts | ||
dom_adapter.ts | ||
dom_tokens.ts | ||
platform_id.ts | ||
private_export.ts | ||
version.ts | ||
viewport_scroller.ts |