Slow String Repeat (was: [Python-Dev] PyBuffer* vs. array.array())

Guido van Rossum guido@python.org
Mon, 06 Jan 2003 12:15:46 -0500


Of course, repeating a 1-length string could be special-cased using
memcpy().  I don't think repeating 2-length strings is a common use
case.

--Guido van Rossum (home page: http://www.python.org/~guido/)