forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitbacbc48
committed
Refactor Copy{From|To}GetRoutine() to use pass-by-reference argument.
The change improves efficiency by eliminating unnecessary copying ofCopyFormatOptions.The coverity also complained about inefficiencies caused bypass-by-value.Oversight in7717f63 and2e4127b.Reported-by: Junwang Zhao <zhjwpku@gmail.com>Reported-by: Tom Lane <tgl@sss.pgh.pa.us> (per reports from coverity)Author: Sutou Kouhei <kou@clear-code.com>Reviewed-by: Junwang Zhao <zhjwpku@gmail.com>Reviewed-by: Masahiko Sawada <sawada.mshk@gmail.com>Discussion:https://postgr.es/m/CAEG8a3L6YCpPksTQMzjD_CvwDEhW3D_t=5md9BvvdOs5k+TA=Q@mail.gmail.com1 parent0b2a45a commitbacbc48
2 files changed
+8
-8
lines changedLines changed: 4 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
153 | 153 |
| |
154 | 154 |
| |
155 | 155 |
| |
156 |
| - | |
| 156 | + | |
157 | 157 |
| |
158 |
| - | |
| 158 | + | |
159 | 159 |
| |
160 |
| - | |
| 160 | + | |
161 | 161 |
| |
162 | 162 |
| |
163 | 163 |
| |
| |||
1574 | 1574 |
| |
1575 | 1575 |
| |
1576 | 1576 |
| |
1577 |
| - | |
| 1577 | + | |
1578 | 1578 |
| |
1579 | 1579 |
| |
1580 | 1580 |
| |
|
Lines changed: 4 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
174 | 174 |
| |
175 | 175 |
| |
176 | 176 |
| |
177 |
| - | |
| 177 | + | |
178 | 178 |
| |
179 |
| - | |
| 179 | + | |
180 | 180 |
| |
181 |
| - | |
| 181 | + | |
182 | 182 |
| |
183 | 183 |
| |
184 | 184 |
| |
| |||
700 | 700 |
| |
701 | 701 |
| |
702 | 702 |
| |
703 |
| - | |
| 703 | + | |
704 | 704 |
| |
705 | 705 |
| |
706 | 706 |
| |
|
0 commit comments
Comments
(0)