Antoine Pitrou <solip...@pitrou.net> writes:

> On Wed, 21 Oct 2020 22:48:59 +1100
> Chris Angelico <ros...@gmail.com> 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.
l...@metapensiero.it  |                 -- Fortunato Depero, 1929.
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/ZWLEY4BJYL4A3ZBBKUIAFXXL62RPFRVB/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to