forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd2825e1
committed
Since sort_bounded_heap makes state changes that should be made
regardless of the number of tuples involved, it's incorrect to skip itwhen memtupcount = 1; the number of cycles saved is minuscule anyway.An alternative solution would be to pull the state changes out to thecall site in tuplesort_performsort, but keeping them near the correspondingchanges in make_bounded_heap seems marginally cleaner. Noticed byGreg Stark.1 parent0ee5a39 commitd2825e1
1 file changed
+2
-3
lines changedLines changed: 2 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
91 | 91 |
| |
92 | 92 |
| |
93 | 93 |
| |
94 |
| - | |
| 94 | + | |
95 | 95 |
| |
96 | 96 |
| |
97 | 97 |
| |
| |||
1068 | 1068 |
| |
1069 | 1069 |
| |
1070 | 1070 |
| |
1071 |
| - | |
1072 |
| - | |
| 1071 | + | |
1073 | 1072 |
| |
1074 | 1073 |
| |
1075 | 1074 |
| |
|
0 commit comments
Comments
(0)