forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita9169f0
committed
Avoid looping through line pointers twice in PageRepairFragmentation().
There doesn't seem to be any good reason to do the filling of theitemidbase[] array separately from the first traversal of the pointers.It's certainly not a win if there are any line pointers with storage,and even if there aren't, this change doesn't insert code into the partof the first loop that will be traversed in that case. So let's justmerge the two loops.Yura Sokolov, reviewed by Claudio FreireDiscussion:https://postgr.es/m/e49befcc6f1d7099834c6fdf5c675a60@postgrespro.ru1 parent4c11d2c commita9169f0
1 file changed
+21
-25
lines changedLines changed: 21 additions & 25 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
481 | 481 |
| |
482 | 482 |
| |
483 | 483 |
| |
| 484 | + | |
| 485 | + | |
484 | 486 |
| |
485 | 487 |
| |
486 | 488 |
| |
| |||
505 | 507 |
| |
506 | 508 |
| |
507 | 509 |
| |
| 510 | + | |
| 511 | + | |
| 512 | + | |
508 | 513 |
| |
509 |
| - | |
| 514 | + | |
| 515 | + | |
510 | 516 |
| |
511 | 517 |
| |
512 | 518 |
| |
513 | 519 |
| |
514 | 520 |
| |
515 | 521 |
| |
516 |
| - | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
517 | 535 |
| |
518 | 536 |
| |
519 | 537 |
| |
| |||
523 | 541 |
| |
524 | 542 |
| |
525 | 543 |
| |
| 544 | + | |
526 | 545 |
| |
527 | 546 |
| |
528 | 547 |
| |
| |||
531 | 550 |
| |
532 | 551 |
| |
533 | 552 |
| |
534 |
| - | |
535 |
| - | |
536 |
| - | |
537 |
| - | |
538 |
| - | |
539 |
| - | |
540 |
| - | |
541 |
| - | |
542 |
| - | |
543 |
| - | |
544 |
| - | |
545 |
| - | |
546 |
| - | |
547 |
| - | |
548 |
| - | |
549 |
| - | |
550 |
| - | |
551 |
| - | |
552 |
| - | |
553 |
| - | |
554 |
| - | |
555 |
| - | |
556 |
| - | |
557 | 553 |
| |
558 | 554 |
| |
559 | 555 |
| |
|
0 commit comments
Comments
(0)