[Zope-Checkins] CVS: Zope/lib/python/BTrees - BTreeItemsTemplate.c:1.19
Tim Peters
tim.one@comcast.net
Sun, 16 Mar 2003 16:42:30 -0500
Update of /cvs-repository/Zope/lib/python/BTrees
In directory cvs.zope.org:/tmp/cvs-serv9786/lib/python/BTrees
Modified Files:
BTreeItemsTemplate.c
Log Message:
nextBTreeItems(): This was copying the value (from the next (key, value)
pair) from the bucket into the set-iteration struct twice. I don't
believe this had any visible effect, it was simply pointless and wasted
a little time (discovered by eyeball).
=== Zope/lib/python/BTrees/BTreeItemsTemplate.c 1.18 => 1.19 ===
--- Zope/lib/python/BTrees/BTreeItemsTemplate.c:1.18 Fri Jan 31 15:13:02 2003
+++ Zope/lib/python/BTrees/BTreeItemsTemplate.c Sun Mar 16 16:42:29 2003
@@ -496,9 +496,6 @@
COPY_VALUE(i->value,
currentbucket->values[ITEMS(i->set)->currentoffset]);
- COPY_VALUE(i->value,
- BUCKET(ITEMS(i->set)->currentbucket)
- ->values[ITEMS(i->set)->currentoffset]);
INCREF_VALUE(i->value);
i->position ++;