commit | 0a2f849b791d13cf0dde97dce2e71a19e2d60465 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Mon Jan 06 22:42:41 2003 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Mon Jan 06 22:42:41 2003 +0000 |
tree | d52434d1d5aab5dc4a919018edf12b432a20c0f2 | |
parent | 2720b0dff80650a04f8ebb3cc7163ec6897e02dd [diff] |
GvR's idea to use memset() for the most common special case of repeating a single character. Shaves another 10% off the running time by avoiding the lg2(N) loops and cache effects for the other cases.