summaryrefslogtreecommitdiffstats
path: root/Lib/pickle.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2003-02-11 22:43:24 (GMT)
committerTim Peters <tim.peters@gmail.com>2003-02-11 22:43:24 (GMT)
commit42f08ac1e303117ea789a8ad2a1326db75f923f8 (patch)
treeee82ccd3ada46a1ee43cded38425bf3a4146b67d /Lib/pickle.py
parente7b33db22d52424ac99ff02f102f83d3d953e93b (diff)
downloadcpython-42f08ac1e303117ea789a8ad2a1326db75f923f8.zip
cpython-42f08ac1e303117ea789a8ad2a1326db75f923f8.tar.gz
cpython-42f08ac1e303117ea789a8ad2a1326db75f923f8.tar.bz2
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.
Diffstat (limited to 'Lib/pickle.py')
-rw-r--r--Lib/pickle.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/pickle.py b/Lib/pickle.py
index 0173c1f..00f5834 100644
--- a/Lib/pickle.py
+++ b/Lib/pickle.py
@@ -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):