forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd25367e
committed
Add bms_get_singleton_member(), and use it where appropriate.
This patch adds a function that replaces a bms_membership() test followedby a bms_singleton_member() call, performing both the test and theextraction of a singleton set's member in one scan of the bitmapset.The performance advantage over the old way is probably minimal in currentusage, but it seems worthwhile on notational grounds anyway.David Rowley1 parentf4e031c commitd25367e
File tree
5 files changed
+52
-7
lines changed- src
- backend
- nodes
- optimizer
- path
- plan
- util
- include/nodes
5 files changed
+52
-7
lines changedLines changed: 44 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
524 | 524 |
| |
525 | 525 |
| |
526 | 526 |
| |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
527 | 571 |
| |
528 | 572 |
| |
529 | 573 |
| |
|
Lines changed: 1 addition & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
867 | 867 |
| |
868 | 868 |
| |
869 | 869 |
| |
870 |
| - | |
| 870 | + | |
871 | 871 |
| |
872 |
| - | |
873 | 872 |
| |
874 | 873 |
| |
875 | 874 |
| |
|
Lines changed: 4 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
162 | 162 |
| |
163 | 163 |
| |
164 | 164 |
| |
165 |
| - | |
166 |
| - | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
167 | 169 |
| |
168 | 170 |
| |
169 |
| - | |
170 | 171 |
| |
171 | 172 |
| |
172 | 173 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
383 | 383 |
| |
384 | 384 |
| |
385 | 385 |
| |
| 386 | + | |
386 | 387 |
| |
387 |
| - | |
| 388 | + | |
388 | 389 |
| |
389 |
| - | |
390 | 390 |
| |
391 | 391 |
| |
392 | 392 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
72 | 72 |
| |
73 | 73 |
| |
74 | 74 |
| |
| 75 | + | |
75 | 76 |
| |
76 | 77 |
| |
77 | 78 |
| |
|
0 commit comments
Comments
(0)