Commit 132a5c1
module: eliminate performance cost of detection for cjs entry
PR-URL: #52093
Backport-PR-URL: #56927
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Jacob Smith <jacob@frende.me>
Reviewed-By: Richard Lau <rlau@redhat.com>
Refs: #526971 parent 697a392 commit 132a5c1Copy full SHA for 132a5c1
File tree
Expand file treeCollapse file tree
6 files changed
+192
-97
lines changedOpen diff view settings
Filter options
- benchmark/misc
- lib/internal/modules
- cjs
- src
Expand file treeCollapse file tree
6 files changed
+192
-97
lines changedOpen diff view settings
Collapse file
benchmark/misc/startup-core.js
Copy file name to clipboardExpand all lines: benchmark/misc/startup-core.js+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
9 | 9 | |
10 | 10 | |
11 | 11 | |
| 12 | + |
12 | 13 | |
13 | 14 | |
14 | 15 | |
|
Collapse file
lib/internal/modules/cjs/loader.js
Copy file name to clipboardExpand all lines: lib/internal/modules/cjs/loader.js+10-2Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
106 | 106 | |
107 | 107 | |
108 | 108 | |
| 109 | + |
109 | 110 | |
110 | 111 | |
111 | 112 | |
| ||
1392 | 1393 | |
1393 | 1394 | |
1394 | 1395 | |
1395 | | - |
1396 | | - |
| 1396 | + |
| 1397 | + |
| 1398 | + |
| 1399 | + |
| 1400 | + |
| 1401 | + |
| 1402 | + |
| 1403 | + |
| 1404 | + |
1397 | 1405 | |
1398 | 1406 | |
1399 | 1407 | |
|
Collapse file
lib/internal/modules/helpers.js
Copy file name to clipboardExpand all lines: lib/internal/modules/helpers.js+35Lines changed: 35 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
19 | 19 | |
20 | 20 | |
21 | 21 | |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
22 | 31 | |
23 | 32 | |
24 | 33 | |
| ||
329 | 338 | |
330 | 339 | |
331 | 340 | |
| 341 | + |
| 342 | + |
| 343 | + |
| 344 | + |
| 345 | + |
| 346 | + |
| 347 | + |
| 348 | + |
| 349 | + |
| 350 | + |
| 351 | + |
| 352 | + |
| 353 | + |
| 354 | + |
| 355 | + |
| 356 | + |
| 357 | + |
| 358 | + |
| 359 | + |
| 360 | + |
| 361 | + |
| 362 | + |
| 363 | + |
| 364 | + |
| 365 | + |
332 | 366 | |
333 | 367 | |
334 | 368 | |
| ||
362 | 396 | |
363 | 397 | |
364 | 398 | |
| 399 | + |
365 | 400 | |
366 | 401 | |
367 | 402 | |
|
Collapse file
lib/internal/modules/run_main.js
Copy file name to clipboardExpand all lines: lib/internal/modules/run_main.js+32-10Lines changed: 32 additions & 10 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
4 | 4 | |
5 | 5 | |
6 | 6 | |
7 | | - |
8 | 7 | |
9 | 8 | |
10 | 9 | |
| ||
85 | 84 | |
86 | 85 | |
87 | 86 | |
88 | | - |
89 | | - |
90 | | - |
91 | | - |
92 | 87 | |
93 | 88 | |
94 | 89 | |
| ||
153 | 148 | |
154 | 149 | |
155 | 150 | |
| 151 | + |
| 152 | + |
156 | 153 | |
157 | 154 | |
158 | 155 | |
159 | 156 | |
160 | 157 | |
161 | | - |
| 158 | + |
| 159 | + |
| 160 | + |
| 161 | + |
| 162 | + |
| 163 | + |
| 164 | + |
| 165 | + |
| 166 | + |
| 167 | + |
| 168 | + |
| 169 | + |
| 170 | + |
| 171 | + |
| 172 | + |
| 173 | + |
| 174 | + |
| 175 | + |
| 176 | + |
| 177 | + |
| 178 | + |
| 179 | + |
| 180 | + |
| 181 | + |
| 182 | + |
| 183 | + |
| 184 | + |
| 185 | + |
| 186 | + |
| 187 | + |
162 | 188 | |
163 | 189 | |
164 | 190 | |
| ||
167 | 193 | |
168 | 194 | |
169 | 195 | |
170 | | - |
171 | | - |
172 | | - |
173 | | - |
174 | 196 | |
175 | 197 | |
176 | 198 | |
|
0 commit comments