Hello, I did some benchmark on psycopg3 and got a pretty grim picture of how slow a pure Python module is compared to something similar written in C...
As per original plan I added an optional C implementation (specifically, written in Cython, to help with boilerplate/refcount) and the result is a sweet 20x speed-up. If you are interested I have a write-up of the profiling/optimization process here: https://www.varrazzo.com/blog/2020/05/19/a-trip-into-optimisation/ Cheers! -- Daniele
