Implemented batching for dicts in cPickle. This is after two failed

attempts to merge the C list-batch and dict-batch code -- they worked, but
it was a godawful mess to read.
This commit is contained in:
Tim Peters 2003-02-11 22:43:24 +00:00
parent e7b33db22d
commit 42f08ac1e3
3 changed files with 138 additions and 48 deletions

View file

@ -612,7 +612,8 @@ class Pickler:
dispatch[ListType] = save_list
# Keep in synch with cPickle's BATCHSIZE.
# Keep in synch with cPickle's BATCHSIZE. Nothing will break if it gets
# out of synch, though.
_BATCHSIZE = 1000
def _batch_appends(self, items):