]> git.ipfire.org Git - thirdparty/psycopg.git/commit
Implement fetch* not in term of iter
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 25 Dec 2020 12:14:34 +0000 (13:14 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 25 Dec 2020 12:14:34 +0000 (13:14 +0100)
commit7e62e3a00b31e3b645c00d005043bdac920f9d92
treeb15a767269e47253059829b1c75b6e1dce76095b
parent77456c1f1f30ff9c0665bea1c03cd6c86a5b8722
Implement fetch* not in term of iter

Shave some time on lists reallocation, but especially avoid going
through __aiter__ on async, because profiling showed some 20% of the
time spent there.

This makes me rethink the entire giving async interface for things that are
already on the client side. Feels like that, in order to implement server-side
cursor, we are shedding speed on the common use of async connections.
psycopg3/psycopg3/_transform.py
psycopg3/psycopg3/cursor.py