3 ms·
OK I was wrong and stand corrected, asyncpg is not pure Python. asyncpg has these two C files and also uses Cython as far as I can see. https://github.com/Mag
by andrewstuart 3y ago
OK I was wrong and stand corrected, asyncpg is not pure Python.
asyncpg has these two C files and also uses Cython as far as I can see.
https://github.com/MagicStack/asyncpg/blob/master/asyncpg/protocol/record/recordobj.c https://github.com/MagicStack/asyncpg/blob/master/asyncpg/pr...
https://github.com/MagicStack/asyncpg/blob/master/asyncpg/protocol/record/recordobj.h https://github.com/MagicStack/asyncpg/blob/master/asyncpg/pr...
If you are interested here is a post by the psycopg author about psycopg2 and 3 and performance versus asyncpg.
https://www.varrazzo.com/blog/2020/05/19/a-trip-into-optimisation/ https://www.varrazzo.com/blog/2020/05/19/a-trip-into-optimis...