]> git.ipfire.org Git - thirdparty/psycopg.git/commit
Add benchmark test for binary numeric
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sun, 9 May 2021 22:52:16 +0000 (00:52 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sun, 9 May 2021 23:04:10 +0000 (01:04 +0200)
commit18b18284cab3061a3722d8ab19c2bb6ec1f880cf
tree2cc21ac71c031c76f6839c7d92a900edb0c73b66
parent113c446fc573dc59336f8bb7fb70a22f86639530
Add benchmark test for binary numeric

Conclusion is that for the moment it is better to leave default Decimal
dump to text format. Better performance can be obtained accessing the
Python C Decimal structure and perform conversion from there.
psycopg3/psycopg3/types/__init__.py
psycopg3_c/psycopg3_c/types/numeric.pyx
tests/scripts/dectest.py [new file with mode: 0644]