]> git.ipfire.org Git - thirdparty/psycopg.git/commit
perf(c/array): reuse buffer to unescape array tokens
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sun, 27 Nov 2022 11:12:50 +0000 (12:12 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sat, 10 Dec 2022 13:01:55 +0000 (13:01 +0000)
commit1936a3801dfd221cfe685179d9f0037b52e52318
tree3af4e3d79fba9c3f5142cf3993051374d10c65e4
parente243c4c91b79ee385a3715dd1e2cb428d91318f2
perf(c/array): reuse buffer to unescape array tokens

Save a malloc and setting up an exception per element, replaced by
realloc when needed and a single exception per array.
psycopg_c/psycopg_c/types/array.pyx