This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients BreamoreBoy, benjamin.peterson, ezio.melotti, jcea, kushal.das, loewis, pitrou, serhiy.storchaka, terry.reedy, thomaslee, vstinner
Date 2013-04-07.21:36:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1365370565.74.0.518737800206.issue16061@psf.upfronthosting.co.za>
In-reply-to
Content
Here is an updated patch. Some comments added (I will be grateful for help in the improvement of these comments), an implementation moved to stringlib (a new file Objects/stringlib/replace.h added).

unicode_2.patch optimizes only too special case and I consider this is not worth the effort. str_replace_1char*.patch cover a wider area and designed to be faster than 3.2 and 3.3 in most cases and not to be significant slower in corner cases.
History
Date User Action Args
2013-04-07 21:36:05serhiy.storchakasetrecipients: + serhiy.storchaka, loewis, terry.reedy, jcea, pitrou, vstinner, thomaslee, benjamin.peterson, ezio.melotti, BreamoreBoy, kushal.das
2013-04-07 21:36:05serhiy.storchakasetmessageid: <1365370565.74.0.518737800206.issue16061@psf.upfronthosting.co.za>
2013-04-07 21:36:05serhiy.storchakalinkissue16061 messages
2013-04-07 21:36:05serhiy.storchakacreate