Message398865
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 |
|
Date |
User |
Action |
Args |
2021-08-04 08:29:38 | erlendaasland | set | recipients:
+ erlendaasland |
2021-08-04 08:29:38 | erlendaasland | set | messageid: <1628065778.22.0.635299320358.issue44822@roundup.psfhosted.org> |
2021-08-04 08:29:38 | erlendaasland | link | issue44822 messages |
2021-08-04 08:29:38 | erlendaasland | create | |
|