]> git.ipfire.org Git - thirdparty/psycopg.git/commit
perf(copy): avoid to call _write with empty buffer
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Wed, 25 May 2022 17:33:18 +0000 (18:33 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sat, 28 May 2022 01:02:30 +0000 (02:02 +0100)
commit47c81af6733f4f5b1481916dfa5b1ac145bd6541
treee9d043a17f1497ad843fafe54e20b90ce808de94
parent7417e0838259cef32c106a714c369ca20b9f51cf
perf(copy): avoid to call _write with empty buffer

There is a call per row we can avoid if the formatter is buffering the
data produced.
psycopg/psycopg/copy.py