Author: Konstantin Lopuhin <[email protected]>
Branch: pickle-dumps
Changeset: r62358:d8645c92cc8b
Date: 2013-03-15 23:16 +0400
http://bitbucket.org/pypy/pypy/changeset/d8645c92cc8b/
Log: (bdkearns) this is 2x faster on small objects and slighly faster on
large ones
diff --git a/lib-python/2/pickle.py b/lib-python/2/pickle.py
--- a/lib-python/2/pickle.py
+++ b/lib-python/2/pickle.py
@@ -1420,8 +1420,7 @@
self.builder = StringBuilder()
def write(self, data):
- for x in data:
- self.builder.append(x)
+ self.builder.append(data)
def getvalue(self):
return self.builder.build()
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit