New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PyUnicode_FromUnicode is deprecated. #288
Comments
I am not removing the two other occurrences until forced by the API actually going away (ie compile errors). I have spent enough time on this already. The logical and documented thing to do would be to use PyUnicode_New but that is documented as being non-resizeable. Resizing is needed in the code, figuring out some other path through the API functions failed. |
PyUnicode_DecodeUTF8 has a fast path [1] for ASCII string, and creating unicode from Py_UNICODE is slow since Python 3.3. |
That is most text when using SQLite. perf showed a small consistent improvement in speedtest Refs #288
For clarity, APSW now only uses current APIs with no deprecated API usage. |
PyUnicode_FromUnicode is deprecated since Python 3.3.
We are planning to remove it in Python 3.11.
The text was updated successfully, but these errors were encountered: