Skip to content

Commit 657a323

Browse files
authored
Remove performance comments in chunk-optimizer.ts
Removed comments explaining the performance impact of accessing the rendered length in the chunk optimizer.
1 parent 9d7138e commit 657a323

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

packages/angular/build/src/builders/application/chunk-optimizer.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,6 @@ function bundleOutputToEsbuildMetafile(
113113
continue;
114114
}
115115

116-
// Read the rendered length once per module. The value is a lazy getter on the bundler's
117-
// rendered module object that transfers the entire module code from native memory on each
118-
// access, which is prohibitively expensive when repeated for every input of a large chunk.
119116
const { renderedLength } = renderedModule;
120117

121118
for (const [originalInputPath, originalInputInfo] of Object.entries(

0 commit comments

Comments
 (0)