[Zodb-checkins] SVN: ZODB/branches/alienoid-btrees_setdefault/src/BTrees/BTreeTemplate.c Call _BTree_set directly to set item, thus 1 function call less.

Ruslan Spivak rspivak at nuxeo.com
Sun Aug 28 09:01:12 EDT 2005


Log message for revision 38127:
  Call _BTree_set directly to set item, thus 1 function call less.

Changed:
  U   ZODB/branches/alienoid-btrees_setdefault/src/BTrees/BTreeTemplate.c

-=-
Modified: ZODB/branches/alienoid-btrees_setdefault/src/BTrees/BTreeTemplate.c
===================================================================
--- ZODB/branches/alienoid-btrees_setdefault/src/BTrees/BTreeTemplate.c	2005-08-28 08:26:48 UTC (rev 38126)
+++ ZODB/branches/alienoid-btrees_setdefault/src/BTrees/BTreeTemplate.c	2005-08-28 13:01:12 UTC (rev 38127)
@@ -1715,7 +1715,7 @@
         if (d == Py_None)
                 return d;
 
-        if (BTree_setitem(self, key, d) < 0) {
+        if (_BTree_set(self, key, d, 0, 0) < 0) {
                 Py_DECREF(d);
                 return NULL;
         }



More information about the Zodb-checkins mailing list