]> granicus.if.org Git - python/commit
unicodeobject.c: Add MAX_MAXCHAR() macro to (micro-)optimize the computation
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 1 May 2012 23:15:40 +0000 (01:15 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 1 May 2012 23:15:40 +0000 (01:15 +0200)
commite6abb488c950f0f69999a30c72871cd289e8be2d
treee44f6604149d3a3e86e895ad15fb97a854e92373
parent438106b66ef4d65746ddecfee3441eb4e20e679b
unicodeobject.c: Add MAX_MAXCHAR() macro to (micro-)optimize the computation
of the second argument of PyUnicode_New().

 * Create also align_maxchar() function
 * Optimize fix_decimal_and_space_to_ascii(): don't compute the maximum
   character when ch <= 127 (it is ASCII)
Objects/unicodeobject.c