forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitcd22d3c
committed
Avoid useless buffer allocations during binary COPY FROM.
The raw_buf and line_buf buffers aren't used when reading binary format,so skip allocating them. raw_buf is 64K so that seems like a worthwhilesavings. An unused line_buf only wastes 1K, but as long as we're checkingit's free to avoid allocating that too.Bharath Rupireddy, tweaked a bit by meDiscussion:https://postgr.es/m/CALj2ACXcCKaGPY0whowqrJ4OPJvDnTssgpGCzvuFQu5z0CXb-g@mail.gmail.com1 parentea91253 commitcd22d3c
1 file changed
+15
-5
lines changedLines changed: 15 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
193 | 193 |
| |
194 | 194 |
| |
195 | 195 |
| |
| 196 | + | |
| 197 | + | |
| 198 | + | |
196 | 199 |
| |
197 | 200 |
| |
198 | 201 |
| |
| |||
3359 | 3362 |
| |
3360 | 3363 |
| |
3361 | 3364 |
| |
3362 |
| - | |
| 3365 | + | |
| 3366 | + | |
| 3367 | + | |
| 3368 | + | |
| 3369 | + | |
3363 | 3370 |
| |
3364 |
| - | |
3365 |
| - | |
3366 |
| - | |
3367 |
| - | |
| 3371 | + | |
| 3372 | + | |
| 3373 | + | |
| 3374 | + | |
| 3375 | + | |
| 3376 | + | |
| 3377 | + | |
3368 | 3378 |
| |
3369 | 3379 |
| |
3370 | 3380 |
| |
|
0 commit comments
Comments
(0)