[issue16757] Faster _PyUnicode_FindMaxChar()
STINNER Victor
report at bugs.python.org
Wed Apr 3 02:02:52 CEST 2013
STINNER Victor added the comment:
Related commit:
changeset: 83066:b5d5f422299f
tag: tip
user: Victor Stinner <victor.stinner at gmail.com>
date: Wed Apr 03 01:48:39 2013 +0200
files: Include/unicodeobject.h Lib/test/test_format.py Objects/stringlib/unicode_format.h Objects/unicodeobject.c
description:
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
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16757>
_______________________________________
More information about the Python-bugs-list
mailing list