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.
V
Victor Stinner committed
f644110816a9315a4f8fa4bcbd9fb5c2708ee1ff
Parent: b511aca