]> git.ipfire.org Git - thirdparty/psycopg.git/commit
perf(c/array): add C implementation of array loader
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sun, 27 Nov 2022 14:20:10 +0000 (15:20 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sat, 10 Dec 2022 13:01:55 +0000 (13:01 +0000)
commit563b276c8b80c23385a17329262679705a42dda3
tree90b4f66ee47d59131c517e752bf27b3ba06cfcfe
parent1936a3801dfd221cfe685179d9f0037b52e52318
perf(c/array): add C implementation of array loader

With this change we get to load an array without the transformer calling
any Python code (if the element loader is a CLoader as well).

We don't need to subclass the binary loader anymore because all the
required info is now taken from the loaded data. As a consequence, we
don't need a BaseArrayLoader anymore.
psycopg/psycopg/types/array.py
psycopg_c/psycopg_c/_psycopg/adapt.pyx
psycopg_c/psycopg_c/_psycopg/transform.pyx
psycopg_c/psycopg_c/types/array.pyx