bpo-46874: Speed up sqlite3 user-defined aggregate 'step' method (GH-31604)

This commit is contained in:
Erlend Egeberg Aasland 2022-03-03 14:54:36 +01:00 committed by GitHub
parent 751c9ed801
commit 88567a9970
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 6 deletions

View file

@ -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 */