]> git.ipfire.org Git - thirdparty/psycopg.git/commit
fix: don't use select as wait function if possible
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sun, 9 Apr 2023 18:59:55 +0000 (20:59 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Mon, 10 Apr 2023 08:44:35 +0000 (10:44 +0200)
commit531a04042e120981b5fb78484567dab5bb56c192
tree8e306d7ddc0835679cd3eba1d392cbd0d1188d7b
parentd55e9907b0cca5e694240200b7b397f51891e709
fix: don't use select as wait function if possible

select is marginally faster than others, but has the limitation of not
allowing FD > 1024, so it is not a good default.

If people need performance, they will use wait_c anyway, which is based
on poll, and doesn't have the limitation.
psycopg/psycopg/waiting.py
tests/test_waiting.py