psycopg3 performance article - Mailing list psycopg

From Daniele Varrazzo
Subject psycopg3 performance article
Date
Msg-id CA+mi_8Y3FRJy9W=mb5VLzpiOfvyiAoiTaXs4UcGphuyLWXjkAg@mail.gmail.com
Whole thread Raw
List psycopg
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



psycopg by date:

Previous
From: Daniele Varrazzo
Date:
Subject: Psycopg 2.8.5 released
Next
From: Frank Millman
Date:
Subject: Minor issue