public inbox for [email protected]  
help / color / mirror / Atom feed
From: Daniele Varrazzo <[email protected]>
To: [email protected]
Subject: psycopg3 performance article
Date: Wed, 20 May 2020 20:15:04 +1200
Message-ID: <CA+mi_8Y3FRJy9W=mb5VLzpiOfvyiAoiTaXs4UcGphuyLWXjkAg@mail.gmail.com> (raw)

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





reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected]
  Subject: Re: psycopg3 performance article
  In-Reply-To: <CA+mi_8Y3FRJy9W=mb5VLzpiOfvyiAoiTaXs4UcGphuyLWXjkAg@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox