Antoine Pitrou
On Wed, 21 Oct 2020 22:48:59 +1100 Chris Angelico
wrote: SQLAlchemy seems to be slower, but if you're using SQLAlchemy, you're probably more concerned about database performance than the CPU cost inside Python.
I certainly wouldn't say that. The ORM's overhead can be quite important, and SQLAlchemy has dedicated C extensions to mitigate it.
To be precise, that's unrelated to the ORM layer: the C extension speed ups the handling of the "records" returned by a database driver, so basically a custom mixin between a tuple and a dictionary. ciao, lele. -- nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia. lele@metapensiero.it | -- Fortunato Depero, 1929.