]> git.ipfire.org Git - thirdparty/psycopg.git/commit
perf(rows): reduce row_factories overhead
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Tue, 13 Dec 2022 12:49:23 +0000 (12:49 +0000)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Tue, 13 Dec 2022 13:42:30 +0000 (13:42 +0000)
commitb999c31d85c420686a5bb1dfb802de4c254cbab7
treec7d19cf4be06fb2fcb6cb6bb15b1a9fef0e2b225
parent39c575a545f722ee2285db31ee2ee2e4c94e8a37
perf(rows): reduce row_factories overhead

Drop the call to cur.description, which is very heavy. Use the low-level
PGresult to get the fields names.

Close #457.
docs/news.rst
psycopg/psycopg/rows.py