]> git.ipfire.org Git - thirdparty/psycopg.git/commit
perf(c): only use __cinit__ in adaptation classes
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Tue, 25 Oct 2022 23:25:34 +0000 (01:25 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Thu, 27 Oct 2022 00:11:37 +0000 (02:11 +0200)
commite6acffd4da60ce7974e131afc2736e451a3876fe
treec123dc92d870d203250b3ab37a23338620155c13
parent43159ace3131832383cb8969d625ca58a1795e16
perf(c): only use __cinit__ in adaptation classes

There is less overhead creating the objects.
psycopg_c/psycopg_c/_psycopg/adapt.pyx
psycopg_c/psycopg_c/types/datetime.pyx
psycopg_c/psycopg_c/types/string.pyx