Implemented list batching in cPickle.

This commit is contained in:
Tim Peters 2003-02-11 21:06:20 +00:00
parent eea4718e81
commit 1092d64002
3 changed files with 122 additions and 48 deletions

View file

@ -612,6 +612,7 @@ class Pickler:
dispatch[ListType] = save_list
# Keep in synch with cPickle's BATCHSIZE.
_BATCHSIZE = 1000
def _batch_appends(self, items):