forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc6e394c
committed
Small improvements for allocation logic in ginHeapTupleFastCollect().
Avoid repetitive calls to repalloc() when the required size of thecollector array grows more than 2x in one call. Also ensure that thearray size is a power of 2 (since palloc will probably consume a powerof 2 anyway) and doesn't start out very small (which'd likely just leadto extra repallocs).David Rowley, tweaked a bit by meDiscussion:https://postgr.es/m/CAKJS1f8vn-iSBE8PKeVHrnhvyjRNYCxguPFFY08QLYmjWG9hPQ@mail.gmail.com1 parent6399242 commitc6e394c
1 file changed
+27
-4
lines changedLines changed: 27 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
486 | 486 |
| |
487 | 487 |
| |
488 | 488 |
| |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
489 | 496 |
| |
490 | 497 |
| |
491 | 498 |
| |
492 | 499 |
| |
493 | 500 |
| |
494 |
| - | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
495 | 510 |
| |
496 | 511 |
| |
497 |
| - | |
498 |
| - | |
| 512 | + | |
499 | 513 |
| |
500 |
| - | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
501 | 524 |
| |
502 | 525 |
| |
503 | 526 |
| |
|
0 commit comments
Comments
(0)