[issue15145] Faster *_find_max_char

2012-10-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks for the effort, Serhiy! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue15145] Faster *_find_max_char

2012-10-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Patch updated to tip. But because results are contradictory and often patched version even slower vanilla (and I don't understand why it happens), I close the issue. I think all changes are irrelevant and differences are only compiler optimization artifacts.

[issue15145] Faster *_find_max_char

2012-10-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Removed file: http://bugs.python.org/file26093/find_max_char.patch ___ Python tracker ___ ___ Python-bugs-list m

[issue15145] Faster *_find_max_char

2012-06-28 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- versions: +Python 3.4 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15145] Faster *_find_max_char

2012-06-23 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue15145] Faster *_find_max_char

2012-06-22 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- priority: normal -> low stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue15145] Faster *_find_max_char

2012-06-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Are there any circumstances where this produces a larger speedup? I don't know. *_find_max_char in any case only a part of expensive functions. Even if it is optimized to zero time, this will most likely not produce a larger speedup. > I don't think a 10%

[issue15145] Faster *_find_max_char

2012-06-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: > 0.8190.73 > 0.7880.755 Are there any circumstances where this produces a larger speedup? I don't think a 10% improvement on a micro-benchmark is interesting at all (it's basically 0% on any real-world program). -- nosy: +pitrou

[issue15145] Faster *_find_max_char

2012-06-22 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : 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+'\U0001'" "s[:-1]" Results on Intel Atom N570 @ 1.66GHz: vanilla patched 0.8190.