[Python-checkins]
python/dist/src/Modules collectionsmodule.c, 1.17, 1.18
rhettinger at users.sourceforge.net
rhettinger at users.sourceforge.net
Sat Jun 26 00:42:09 EDT 2004
Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4683
Modified Files:
collectionsmodule.c
Log Message:
Add a comment with implementation notes.
Index: collectionsmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/collectionsmodule.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** collectionsmodule.c 17 Jun 2004 18:27:16 -0000 1.17
--- collectionsmodule.c 26 Jun 2004 04:42:06 -0000 1.18
***************
*** 360,363 ****
--- 360,370 ----
}
+ /* delitem() implemented in terms of rotate for simplicity and reasonable
+ performance near the end points. If for some reason this method becomes
+ popular, it is not hard to re-implement this using direct data movement
+ (similar to code in list slice assignment) and achieve a two or threefold
+ performance boost.
+ */
+
static int
deque_del_item(dequeobject *deque, int i)
More information about the Python-checkins
mailing list