Add _PyUnicodeWriter_WriteSubstring() function
Write a function to enable more optimizations: * If the substring is the whole string and overallocation is disabled, just keep a reference to the string, don't copy characters * Avoid a call to the expensive _PyUnicode_FindMaxChar() function when possible
V
Victor Stinner committed
cfc4c13b04223705a43595579b46020c9e876ac4
Parent: 4489e92