[Python-checkins] python/dist/src/Lib pickle.py,1.150,1.151

tim_one@users.sourceforge.net tim_one@users.sourceforge.net
Tue, 11 Feb 2003 14:43:26 -0800


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1:/tmp/cvs-serv10788/python/Lib

Modified Files:
	pickle.py 
Log Message:
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.


Index: pickle.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/pickle.py,v
retrieving revision 1.150
retrieving revision 1.151
diff -C2 -d -r1.150 -r1.151
*** pickle.py	11 Feb 2003 21:06:13 -0000	1.150
--- pickle.py	11 Feb 2003 22:43:23 -0000	1.151
***************
*** 613,617 ****
      dispatch[ListType] = save_list
  
!     # Keep in synch with cPickle's BATCHSIZE.
      _BATCHSIZE = 1000
  
--- 613,618 ----
      dispatch[ListType] = save_list
  
!     # Keep in synch with cPickle's BATCHSIZE.  Nothing will break if it gets
!     # out of synch, though.
      _BATCHSIZE = 1000