]> granicus.if.org Git - python/commit
GvR's idea to use memset() for the most common special case of repeating
authorRaymond Hettinger <python@rcn.com>
Mon, 6 Jan 2003 22:42:41 +0000 (22:42 +0000)
committerRaymond Hettinger <python@rcn.com>
Mon, 6 Jan 2003 22:42:41 +0000 (22:42 +0000)
commit0a2f849b791d13cf0dde97dce2e71a19e2d60465
treed52434d1d5aab5dc4a919018edf12b432a20c0f2
parent2720b0dff80650a04f8ebb3cc7163ec6897e02dd
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.
Objects/stringobject.c