New submission from Serhiy Storchaka <storch...@gmail.com>:

Here is patch that speed up *_find_max_char stringlib functions.

Microbenchmarks:

./python -m timeit -s "s='A'*20+'\x80'" "s[:-1]"
./python -m timeit -s "s='A'*20+'\U00010000'" "s[:-1]"

Results on Intel Atom N570 @ 1.66GHz:

vanilla  patched

 0.819    0.73
 0.788    0.755

----------
components: Interpreter Core
files: find_max_char.patch
keywords: patch
messages: 163480
nosy: storchaka
priority: normal
severity: normal
status: open
title: Faster *_find_max_char
type: performance
versions: Python 3.3
Added file: http://bugs.python.org/file26093/find_max_char.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue15145>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to