diff options
| author | Victor Stinner <victor.stinner@gmail.com> | 2015-10-08 23:39:28 (GMT) |
|---|---|---|
| committer | Victor Stinner <victor.stinner@gmail.com> | 2015-10-08 23:39:28 (GMT) |
| commit | e7bf86cd7d7c9a3924501875a08c4ef4a0063103 (patch) | |
| tree | e0097b0f4fb0194d233d1d9f58bf8570815873c3 /Objects/stringlib/replace.h | |
| parent | fdfbf781140f22619b0ef6bfeac792496774bb69 (diff) | |
| download | cpython-e7bf86cd7d7c9a3924501875a08c4ef4a0063103.zip cpython-e7bf86cd7d7c9a3924501875a08c4ef4a0063103.tar.gz cpython-e7bf86cd7d7c9a3924501875a08c4ef4a0063103.tar.bz2 | |
Optimize backslashreplace error handler
Issue #25318: Optimize backslashreplace and xmlcharrefreplace error handlers in
UTF-8 encoder. Optimize also backslashreplace error handler for ASCII and
Latin1 encoders.
Use the new _PyBytesWriter API to optimize these error handlers for the
encoders. It avoids to create an exception and call the slow implementation of
the error handler.
Diffstat (limited to 'Objects/stringlib/replace.h')
0 files changed, 0 insertions, 0 deletions
