Commit c6c921f
authored
appending to a large array that could potentially use extend, when the
requested array size is within a certain size for a multiple of pages.
The calculation had the wrong sign for the large padding (the 2 size_t +
1 byte), which made it end up sending a number very close to size_t.max
into the extend function.
This affected both appending and setting length performance, though
appending also had a grow factor which may have mitigated this somewhat.
1 parent 30c08ca commit c6c921f
1 file changed
Lines changed: 21 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1532 | 1532 | | |
1533 | 1533 | | |
1534 | 1534 | | |
1535 | | - | |
| 1535 | + | |
1536 | 1536 | | |
1537 | 1537 | | |
1538 | 1538 | | |
| |||
5393 | 5393 | | |
5394 | 5394 | | |
5395 | 5395 | | |
| 5396 | + | |
| 5397 | + | |
| 5398 | + | |
| 5399 | + | |
| 5400 | + | |
| 5401 | + | |
| 5402 | + | |
| 5403 | + | |
| 5404 | + | |
| 5405 | + | |
| 5406 | + | |
| 5407 | + | |
| 5408 | + | |
| 5409 | + | |
| 5410 | + | |
| 5411 | + | |
| 5412 | + | |
| 5413 | + | |
| 5414 | + | |
| 5415 | + | |
5396 | 5416 | | |
5397 | 5417 | | |
5398 | 5418 | | |
| |||
0 commit comments