Terry J. Reedy added the comment:

My experiments last September, before this was filed, showed that str.find 
(index) had most of the relative slowdown of str.replace. I assumed at that 
time that .replace used .find or .index to find  substrings to replace, so that 
the fix for .replace would include speeding up .find/index. Looking at the 
patches, I see that I was wrong; I guess because .replace copies as it goes. I 
will open a separate issue sometime unless .find gets fixed here.

For both .find and .replace, the regression was worse on Windows than on linux, 
so the patches should be tested on Windows also. If I can get vc++ express 2008 
installed and working on my current substitute machine. I will give them a try.

----------
nosy: +terry.reedy

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

Reply via email to