You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pysqlite_connection_execute_impl() and friends (executemany, executescript) goes all the way through the Call API just to call pysqlite_connection_cursor_impl. We can same a lot of calls by calling the cursor _impl function directly; after all, it does live in the same file scope as the callers.
A quick bench (sqlitesynth) shows a small speedup:
Mean +- std dev: [main] 9.55 us +- 0.25 us -> [patched] 9.32 us +- 0.23 us: 1.02x faster
(Side effect: will get rid of _Py_IDENTIFIER(cursor) in sqlite3)
Activity
erlend-aasland commentedon Feb 4, 2022
pysqlite_connection_execute_impl()and friends (executemany, executescript) goes all the way through the Call API just to callpysqlite_connection_cursor_impl. We can same a lot of calls by calling the cursor _impl function directly; after all, it does live in the same file scope as the callers.A quick bench (sqlitesynth) shows a small speedup:
(Side effect: will get rid of _Py_IDENTIFIER(cursor) in sqlite3)
erlend-aasland commentedon Feb 17, 2022
The change proposed in #75310 was included in #75532. Closing this.