summaryrefslogtreecommitdiff
path: root/Objects/listobject.c
AgeCommit message (Expand)AuthorLines
2004-08-03Tweak previous patch to silence a warning about the unused left value in theBrett Cannon-1/+1
2004-07-31list_ass_slice(): Document the obscure new intent that deleting a sliceTim Peters-8/+16
2004-07-31list_ass_slice(): The difference between "recycle" and "recycled" wasTim Peters-17/+10
2004-07-31Armin asked for a list_ass_slice review in his checkin, so here's theTim Peters-26/+44
2004-07-30This is a reorganization of list_ass_slice(). It should probably be reviewed,Armin Rigo-22/+20
2004-07-30What if you call lst.__init__() while it is being sorted? :-)Armin Rigo-2/+4
2004-07-29* Simplify and speed-up list_resize(). Relying on the newly documentedRaymond Hettinger-3/+7
2004-07-29* drop the unreasonable list invariant that ob_item should never come backArmin Rigo-28/+46
2004-07-29Minor memory leak.Armin Rigo-0/+2
2004-07-29Fix obscure breakage (relative to 2.3) in listsort: the test for listTim Peters-26/+12
2004-07-29Trimmed trailing whitespace.Tim Peters-21/+21
2004-07-29PyList_New(): we went to all the trouble of computing and bounds-checkingTim Peters-1/+2
2004-07-15Moved SunPro warning suppression into pyport.h and out of individualNicholas Bastin-4/+0
2004-06-17Fixed end-of-loop code not reached warning when using SunPro CNicholas Bastin-0/+4
2004-05-05Nits:Raymond Hettinger-16/+9
2004-05-05SF patch #947476: Apply freelist technique to listsRaymond Hettinger-4/+17
2004-04-12Use Py_RETURN_NONE macro where applicable.Raymond Hettinger-14/+8
2004-04-12Small refactoring saving one function() and eliminating some indirection.Raymond Hettinger-11/+10
2004-04-12* Specialize ins1() into app1() for appends. Saves several unnecessaryRaymond Hettinger-6/+36
2004-03-20Get rid of listextend_internal() and explain why the special caseArmin Rigo-51/+25
2004-03-18Make iterators length transparent where possible.Raymond Hettinger-1/+14
2004-03-15Revert last change. Found an application that was worse off with resizeRaymond Hettinger-13/+10
2004-03-14list_resize() now has an "exact" option for bypassing the overallocationRaymond Hettinger-10/+13
2004-03-12Make PySequence_Fast_ITEMS public. (Thanks Skip.)Raymond Hettinger-3/+3
2004-03-12* Eliminate duplicate call to PyObject_Size().Raymond Hettinger-3/+3
2004-03-12Use a new macro, PySequence_Fast_ITEMS to factor out code common toRaymond Hettinger-16/+3
2004-03-11Now that list.extend() is at the root of many list operations, it becomesRaymond Hettinger-3/+9
2004-03-11Eliminate a big block of duplicate code in PySequence_List() byRaymond Hettinger-0/+6
2004-03-11list_inplace_concat() is now expressed in terms of list_extend() whichRaymond Hettinger-14/+13
2004-03-10Use memcpy() instead of memmove() when the buffers are known to be distinct.Raymond Hettinger-2/+2
2004-03-10Tidied up the implementations of reversed (including the custom onesRaymond Hettinger-9/+23
2004-03-09Optimize inner loops for subscript, repeat, and concat.Raymond Hettinger-27/+39
2004-03-09Optimize slice assignments.Raymond Hettinger-16/+17
2004-03-08Optimize tuple_slice() and make further improvements to list_slice()Raymond Hettinger-14/+16
2004-03-08Small optimizations for list_slice() and list_extend_internal().Raymond Hettinger-9/+20
2004-02-19Keep the list.pop() optimization while restoring the many possibilityRaymond Hettinger-4/+2
2004-02-17Double the speed of list.pop() which was spending most of its time parsingRaymond Hettinger-2/+11
2004-02-15Refactor list_extend() and list_fill() for gains in code size, memoryRaymond Hettinger-84/+71
2004-02-14Fine tune the speed/space trade-off for overallocating small lists.Raymond Hettinger-8/+3
2004-02-14Fix missing return value. Spotted by Neal NorwitzRaymond Hettinger-0/+1
2004-02-13Optimize list.pop() for the common special case of popping off the end.Raymond Hettinger-0/+5
2004-02-13* Optimized list appends and pops by making fewer calls the underlying systemRaymond Hettinger-87/+66
2004-01-18Revert change accidentally checked in as part of a whitespace normalizationTim Peters-9/+5
2004-01-18Whitespace normalization.Tim Peters-5/+9
2004-01-04Apply tuple/list pre-sizing optimization to a broader class of objects.Raymond Hettinger-8/+4
2003-12-28complete backout of listobject.c v2.171Andrew MacIntyre-4/+0
2003-12-26Revert previous two checkins to repair test failure.Jeremy Hylton-24/+6
2003-12-26use the correct macro to access list sizeAndrew MacIntyre-1/+1
2003-12-25Performance of list([]) in 2.3 came up in a thread on comp.lang.python,Andrew MacIntyre-6/+28
2003-12-17Guido grants a Christmas wish:Raymond Hettinger-37/+0