(In reply to Iain Ireland [:iain] from comment #9) > Looks like we're slow in some Angular code. We spend most of our time under `Fga` in the profile, which I believe I've worked out is [refreshView](https://github.com/angular/angular/blob/67df935b411ca5c79b33dd13c93933c41e8e3ae4/packages/core/src/render3/instructions/shared.ts#L355). > > A full 10% of the ticks are in what looks like an IC for `Ida`, which I think is [updateTransplantedViewCount](https://github.com/angular/angular/blob/a92a89b0eb127a59d7e071502b5850e57618ec2d/packages/core/src/render3/util/view_utils.ts#L190-L201). Not sure what's up there. Looking at the code, i wonder if there's a null or undefined operand here: `lContainer[TRANSPLANTED_VIEWS_TO_REFRESH] += amount`. I added some logging and we do hit null/undefined for binary arithmetic ops a fair number of times on some Angular websites so I'll just post a patch for that in a separate bug and we can see if it helps here.
Bug 1745639 Comment 10 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
(In reply to Iain Ireland [:iain] from comment #9) > Looks like we're slow in some Angular code. We spend most of our time under `Fga` in the profile, which I believe I've worked out is [refreshView](https://github.com/angular/angular/blob/67df935b411ca5c79b33dd13c93933c41e8e3ae4/packages/core/src/render3/instructions/shared.ts#L355). > > A full 10% of the ticks are in what looks like an IC for `Ida`, which I think is [updateTransplantedViewCount](https://github.com/angular/angular/blob/a92a89b0eb127a59d7e071502b5850e57618ec2d/packages/core/src/render3/util/view_utils.ts#L190-L201). Not sure what's up there. Looking at the code, i wonder if there's a null or undefined operand here: `lContainer[TRANSPLANTED_VIEWS_TO_REFRESH] += amount` and/or `parent[TRANSPLANTED_VIEWS_TO_REFRESH] += amount`. I added some logging and we do hit null/undefined for binary arithmetic ops a fair number of times on some Angular websites so I'll just post a patch for that in a separate bug and we can see if it helps here.