This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author erlendaasland
Recipients erlendaasland
Date 2021-08-04.08:29:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1628065778.22.0.635299320358.issue44822@roundup.psfhosted.org>
In-reply-to
Content
The third argument to sqlite3_result_text() is the length of the string passed as the second argument. Currently, we pass -1, so SQLite has to invoke strlen() to compute the length of the passed string. Suggesting to use PyUnicode_AsUTF8AndSize() iso. PyUnicode_AsUTF8() and pass the string size to avoid the superfluous strlen().

See also:
- https://sqlite.org/c3ref/result_blob.html
History
Date User Action Args
2021-08-04 08:29:38erlendaaslandsetrecipients: + erlendaasland
2021-08-04 08:29:38erlendaaslandsetmessageid: <1628065778.22.0.635299320358.issue44822@roundup.psfhosted.org>
2021-08-04 08:29:38erlendaaslandlinkissue44822 messages
2021-08-04 08:29:38erlendaaslandcreate