mirror of
https://github.com/python/cpython.git
synced 2025-08-28 12:45:07 +00:00
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:
parent
e7b33db22d
commit
42f08ac1e3
3 changed files with 138 additions and 48 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue