Skip to content

Commit

Permalink
perf(ivy): avoid native node retrieval from LView (angular#33511)
Browse files Browse the repository at this point in the history
PR Close angular#33511
  • Loading branch information
pkozlowski-opensource authored and mohaxspb committed Nov 7, 2019
1 parent 90f4841 commit 63ca13d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/render3/instructions/container.ts
Expand Up @@ -17,7 +17,7 @@ import {FLAGS, HEADER_OFFSET, InitPhaseState, LView, LViewFlags, RENDERER, TVIEW
import {assertNodeType} from '../node_assert';
import {appendChild, removeView} from '../node_manipulation';
import {getBindingIndex, getCheckNoChangesMode, getIsParent, getLView, getPreviousOrParentTNode, setIsNotParent, setPreviousOrParentTNode} from '../state';
import {getNativeByTNode, load} from '../util/view_utils';
import {load} from '../util/view_utils';

import {addToViewTree, createDirectivesInstances, createLContainer, createTNode, createTView, getOrCreateTNode, resolveDirectives, saveResolvedLocalsInData} from './shared';

Expand Down Expand Up @@ -185,7 +185,7 @@ function containerInternal(
const lContainer = lView[adjustedIndex] = createLContainer(comment, lView, comment, tNode);

appendChild(comment, tNode, lView);
attachPatchData(getNativeByTNode(tNode, lView), lView);
attachPatchData(comment, lView);

// Containers are added to the current view tree instead of their embedded views
// because views can be removed and re-inserted.
Expand Down

0 comments on commit 63ca13d

Please sign in to comment.