Commits

Konstantin Lopuhin  committed d8645c9

(bdkearns) this is 2x faster on small objects and slighly faster on large ones

  • Participants
  • Parent commits 158e496
  • Branches pickle-dumps

Comments (0)

Files changed (1)

File lib-python/2/pickle.py

         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()