From: dvarrazzo (@dvarrazzo) <noreply+dvarrazzo@github.com>
To: psycopg/psycopg <noreply+psycopg-psycopg@github.com>
Subject: Re: [psycopg/psycopg] PR #1469: perf: don't wait on the event loop when the socket is writable
Date: Sun, 01 Nov 2026 23:05:53 +0000
Message-ID: <gh-psycopg-psycopg-1469-rc4437738967@github.com> (raw)
In-Reply-To: <gh-psycopg-psycopg-1469@github.com>
References: <gh-psycopg-psycopg-1469@github.com>
(on psycopg/psycopg/waiting.py:158)
This is not the way we have organised the code in this module. you can see that we have declared functions with different implementations and different names, and eventually we have defined the alias `wait` as the best implementation available on the platform (e.g. `wait = wait_poll`). Whatever you do here, I expect to follow the same pattern.