[Zope-Checkins] CVS: Zope3/lib/python/Persistence/BTrees - BTreeItemsTemplate.c:1.7

Tim Peters tim.one@comcast.net
Sat, 22 Jun 2002 13:27:54 -0400


Update of /cvs-repository/Zope3/lib/python/Persistence/BTrees
In directory cvs.zope.org:/tmp/cvs-serv6965

Modified Files:
	BTreeItemsTemplate.c 
Log Message:
BTreeItems_item():  wasn't updating bucket access time.
nextBTreeItems() and nextTreeSetItems():  ditto.

Alas, on Windows, this makes the BTree tests run even slower than
before for Zope3 -- PER_ACCESSED is extremely slow in Zope3 compared
to the Zope2 HEAD on Windows Windows time() is very expensive).


=== Zope3/lib/python/Persistence/BTrees/BTreeItemsTemplate.c 1.6 => 1.7 ===
   }
 
-  PER_ALLOW_DEACTIVATION(self->currentbucket);
+  PER_UNUSE(self->currentbucket);
   return r;
 
  err:
   Py_DECREF(k);
   Py_XDECREF(v);
-  PER_ALLOW_DEACTIVATION(self->currentbucket);
+  PER_UNUSE(self->currentbucket);
   return NULL;
 }
 
@@ -488,7 +488,7 @@
 
           i->position ++;
 
-          PER_ALLOW_DEACTIVATION(currentbucket);
+          PER_UNUSE(currentbucket);
         }
       else
         {
@@ -528,7 +528,7 @@
 
           i->position ++;
 
-          PER_ALLOW_DEACTIVATION(currentbucket);
+          PER_UNUSE(currentbucket);
         }
       else
         {