Repository navigation
Commit 9277ea0
authored
perf(hashing): skip materializing assets when no content hash is named (#22256)
RealContentHashPlugin read every asset's full text before deciding whether
it had anything to do: the bail-out for a build that names no content hash
sat after the loop that materialized them all.
Collect each asset's hashes from its info first, return when none carries
one, and materialize only then.1 parent f28ae51 commit 9277ea0
2 files changed
Lines changed: 18 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
246 | 252 | | |
247 | | - | |
248 | | - | |
249 | 253 | | |
250 | 254 | | |
251 | 255 | | |
252 | 256 | | |
| 257 | + | |
253 | 258 | | |
254 | 259 | | |
255 | 260 | | |
256 | 261 | | |
257 | 262 | | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
258 | 268 | | |
259 | 269 | | |
260 | 270 | | |
261 | 271 | | |
262 | 272 | | |
263 | 273 | | |
264 | 274 | | |
265 | | - | |
| 275 | + | |
266 | 276 | | |
267 | 277 | | |
268 | 278 | | |
| |||
279 | 289 | | |
280 | 290 | | |
281 | 291 | | |
282 | | - | |
283 | 292 | | |
284 | 293 | | |
285 | 294 | | |
| |||
0 commit comments