[pypy-svn] r71567 - pypy/trunk/pypy/rlib

agaynor at codespeak.net agaynor at codespeak.net
Sun Feb 28 22:32:03 CET 2010


Author: agaynor
Date: Sun Feb 28 22:32:01 2010
New Revision: 71567

Modified:
   pypy/trunk/pypy/rlib/rstring.py
Log:
Add a note to string_repeat that it does excessive mallocs, should be looked at eventually.

Modified: pypy/trunk/pypy/rlib/rstring.py
==============================================================================
--- pypy/trunk/pypy/rlib/rstring.py	(original)
+++ pypy/trunk/pypy/rlib/rstring.py	Sun Feb 28 22:32:01 2010
@@ -32,6 +32,8 @@
         return u''.join(self.l)
 
 
+# XXX: This does log(mul) mallocs, the GCs probably make that efficient, but
+# some measurement should be done at some point.
 def string_repeat(s, mul):
     """Repeat a string or unicode.  Note that this assumes that 'mul' > 0."""
     result = None



More information about the Pypy-commit mailing list