commit | f644110816a9315a4f8fa4bcbd9fb5c2708ee1ff | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@haypocalc.com> | Sun Dec 18 02:43:08 2011 +0100 |
committer | Victor Stinner <victor.stinner@haypocalc.com> | Sun Dec 18 02:43:08 2011 +0100 |
tree | 5b65ab533043849d0fb940a16212f96e467acb4b | |
parent | b511aca596d300af45928e9b9dcbcaaa87bc62df [diff] |
Issue #13621: Optimize str.replace(char1, char2) Use findchar() which is more optimized than a dummy loop using PyUnicode_READ(). PyUnicode_READ() is a complex and slow macro.