mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-46874: Speed up sqlite3 user-defined aggregate 'step' method (GH-31604)
This commit is contained in:
parent
751c9ed801
commit
88567a9970
4 changed files with 13 additions and 6 deletions
|
@ -627,6 +627,7 @@ module_clear(PyObject *module)
|
|||
Py_CLEAR(state->str___conform__);
|
||||
Py_CLEAR(state->str_executescript);
|
||||
Py_CLEAR(state->str_finalize);
|
||||
Py_CLEAR(state->str_step);
|
||||
Py_CLEAR(state->str_upper);
|
||||
|
||||
return 0;
|
||||
|
@ -713,6 +714,7 @@ module_exec(PyObject *module)
|
|||
ADD_INTERNED(state, __conform__);
|
||||
ADD_INTERNED(state, executescript);
|
||||
ADD_INTERNED(state, finalize);
|
||||
ADD_INTERNED(state, step);
|
||||
ADD_INTERNED(state, upper);
|
||||
|
||||
/* Set error constants */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue