Repository navigation
Commit 8e89caa
committed
Unite entry types for a key template only when an array declares one
ArrayUnion::mergeWithKeyTemplate() united the declared key and value types
of every general array before checking whether any of them has a key
template. Without one it returned null and mergeIntoGeneralArray() united
the same types again, so every merge of general arrays did its union
twice - and once more on each nesting level of the values. bug-6948,
whose array nests itself fifteen times, no longer finished its benchmark.
It now returns before uniting anything when no array declares a key
template.
Amp-Thread-ID: https://ampcode.com/threads/T-01a1976c-1bde-72f8-b96c-072279109d591 parent 6dc37db commit 8e89caa
1 file changed
Lines changed: 15 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
369 | 369 | | |
370 | 370 | | |
371 | 371 | | |
372 | | - | |
| 372 | + | |
373 | 373 | | |
374 | 374 | | |
375 | 375 | | |
| |||
387 | 387 | | |
388 | 388 | | |
389 | 389 | | |
390 | | - | |
391 | | - | |
| 390 | + | |
392 | 391 | | |
393 | 392 | | |
394 | 393 | | |
395 | | - | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
396 | 407 | | |
397 | 408 | | |
398 | 409 | | |
| |||
0 commit comments