[pypy-commit] pypy pickle-dumps: (bdkearns) this is 2x faster on small objects and slighly faster on large ones
kostialopuhin
noreply at buildbot.pypy.org
Fri Mar 15 21:08:20 CET 2013
Author: Konstantin Lopuhin <kostia.lopuhin at gmail.com>
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()
More information about the pypy-commit
mailing list