- Notifications
You must be signed in to change notification settings - Fork5
Commit30e98a7
committed
Pull up isReset flag from AllocSetContext to MemoryContext struct. This
avoids the overhead of one function call when calling MemoryContextReset(),and it seems like the isReset optimization would be applicable to any newmemory context we might invent in the future anyway.This buys back the overhead I just added in previous patch to always callMemoryContextReset() in ExecScan, even when there's no quals or projections.1 parent0319da6 commit30e98a7
3 files changed
+19
-25
lines changedLines changed: 2 additions & 23 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
128 | 128 |
| |
129 | 129 |
| |
130 | 130 |
| |
131 |
| - | |
| 131 | + | |
132 | 132 |
| |
133 | 133 |
| |
134 | 134 |
| |
| |||
140 | 140 |
| |
141 | 141 |
| |
142 | 142 |
| |
143 |
| - | |
144 | 143 |
| |
145 | 144 |
| |
146 | 145 |
| |
| |||
427 | 426 |
| |
428 | 427 |
| |
429 | 428 |
| |
430 |
| - | |
431 |
| - | |
432 | 429 |
| |
433 | 430 |
| |
434 | 431 |
| |
| |||
472 | 469 |
| |
473 | 470 |
| |
474 | 471 |
| |
475 |
| - | |
476 |
| - | |
477 |
| - | |
478 |
| - | |
479 | 472 |
| |
480 | 473 |
| |
481 | 474 |
| |
| |||
519 | 512 |
| |
520 | 513 |
| |
521 | 514 |
| |
522 |
| - | |
523 |
| - | |
524 | 515 |
| |
525 | 516 |
| |
526 | 517 |
| |
| |||
629 | 620 |
| |
630 | 621 |
| |
631 | 622 |
| |
632 |
| - | |
633 |
| - | |
634 | 623 |
| |
635 | 624 |
| |
636 | 625 |
| |
| |||
662 | 651 |
| |
663 | 652 |
| |
664 | 653 |
| |
665 |
| - | |
666 |
| - | |
667 |
| - | |
668 | 654 |
| |
669 | 655 |
| |
670 | 656 |
| |
| |||
822 | 808 |
| |
823 | 809 |
| |
824 | 810 |
| |
825 |
| - | |
826 |
| - | |
827 | 811 |
| |
828 | 812 |
| |
829 | 813 |
| |
| |||
922 | 906 |
| |
923 | 907 |
| |
924 | 908 |
| |
925 |
| - | |
926 |
| - | |
927 |
| - | |
928 | 909 |
| |
929 | 910 |
| |
930 | 911 |
| |
| |||
1059 | 1040 |
| |
1060 | 1041 |
| |
1061 | 1042 |
| |
1062 |
| - | |
1063 |
| - | |
1064 | 1043 |
| |
1065 | 1044 |
| |
1066 | 1045 |
| |
1067 | 1046 |
| |
1068 | 1047 |
| |
1069 | 1048 |
| |
1070 |
| - | |
| 1049 | + | |
1071 | 1050 |
| |
1072 | 1051 |
| |
1073 | 1052 |
| |
|
Lines changed: 16 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
127 | 127 |
| |
128 | 128 |
| |
129 | 129 |
| |
130 |
| - | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
131 | 136 |
| |
132 | 137 |
| |
133 | 138 |
| |
| |||
476 | 481 |
| |
477 | 482 |
| |
478 | 483 |
| |
| 484 | + | |
479 | 485 |
| |
480 | 486 |
| |
481 | 487 |
| |
| |||
504 | 510 |
| |
505 | 511 |
| |
506 | 512 |
| |
| 513 | + | |
507 | 514 |
| |
508 | 515 |
| |
509 | 516 |
| |
510 | 517 |
| |
511 | 518 |
| |
512 | 519 |
| |
513 |
| - | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
514 | 523 |
| |
515 | 524 |
| |
516 | 525 |
| |
| |||
535 | 544 |
| |
536 | 545 |
| |
537 | 546 |
| |
| 547 | + | |
538 | 548 |
| |
539 | 549 |
| |
540 | 550 |
| |
| |||
560 | 570 |
| |
561 | 571 |
| |
562 | 572 |
| |
| 573 | + | |
563 | 574 |
| |
564 | 575 |
| |
565 | 576 |
| |
| |||
620 | 631 |
| |
621 | 632 |
| |
622 | 633 |
| |
| 634 | + | |
| 635 | + | |
| 636 | + | |
623 | 637 |
| |
624 | 638 |
| |
625 | 639 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
59 | 59 |
| |
60 | 60 |
| |
61 | 61 |
| |
| 62 | + | |
62 | 63 |
| |
63 | 64 |
| |
64 | 65 |
| |
|
0 commit comments
Comments
(0)