coleifer / pysqlite3

SQLite3 DB-API 2.0 driver from Python 3, packaged separately, with improvements
zlib License
183 stars 51 forks source link

Drop _Py_IDENTIFIER API usage #31

Closed erlend-aasland closed 2 years ago

erlend-aasland commented 2 years ago

See https://bugs.python.org/issue46541 and

The _Py_IDENTIFIER APIs will probably not be dropped from the CPython (internal) C API (yet), but removing usage from 3rd party projects will definitely help :)

The self.cursor() calls in connection.c can easily be inlined, with a performance gain; call pysqlite_connection_cursor() directly from pysqlite_connection_execute*() instead of going through 6 or 7 (!) function calls.

Future optimisation: