- Notifications
You must be signed in to change notification settings - Fork5.1k
Commit5092aae
committed
Use bms_add_members() instead of bms_union() when possible
bms_union() causes a new set to be allocated. What this caller needs ismembers added to an existing set. bms_add_members() is the tool forthat job.This is just a matter of fixing an inefficiency due to surplus memoryallocations. No bugs being fixed.The only other place I found that might be valid to apply this change isin markNullableIfNeeded(), but I opted not to do that due to the risk toreward ratio not looking favorable. The risk being that there *could* beanother pointer pointing to the Bitmapset.Author: David Rowley <dgrowleyml@gmail.com>Reviewed-by: Greg Burd <greg@burd.me>Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>Discussion:https://postgr.es/m/CAApHDvoCcoS-p5tZNJLTxFOKTYNjqVh7Dwf+5ikDUBwnvWftRw@mail.gmail.com1 parentf8f4afe commit5092aae
1 file changed
+1
-1
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
802 | 802 |
| |
803 | 803 |
| |
804 | 804 |
| |
805 |
| - | |
| 805 | + | |
806 | 806 |
| |
807 | 807 |
| |
808 | 808 |
| |
|
0 commit comments
Comments
(0)