[Zodb-checkins] CVS: ZODB3/persistent - cPickleCache.c:1.87.10.2

Jim Fulton jim at zope.com
Mon Jan 26 15:37:20 EST 2004


Update of /cvs-repository/ZODB3/persistent
In directory cvs.zope.org:/tmp/cvs-serv23336/src/persistent

Modified Files:
      Tag: zope3-zodb3-devel-branch
	cPickleCache.c 
Log Message:
Fixed a bug in klass_items.  There's no point in
preallocating a list that will be mostly empty.


=== ZODB3/persistent/cPickleCache.c 1.87.10.1 => 1.87.10.2 ===
--- ZODB3/persistent/cPickleCache.c:1.87.10.1	Fri Jan 16 10:43:28 2004
+++ ZODB3/persistent/cPickleCache.c	Mon Jan 26 15:37:19 2004
@@ -399,7 +399,7 @@
     PyObject *l,*k,*v;
     int p = 0;
 
-    l = PyList_New(PyDict_Size(self->data));
+    l = PyList_New(0);
     if (l == NULL)
 	return NULL;
 




More information about the Zodb-checkins mailing list