summaryrefslogtreecommitdiff
path: root/Objects/listobject.c
AgeCommit message (Expand)AuthorLines
2004-10-07Finalize the freelist of list objects.Raymond Hettinger-0/+13
2004-09-26Checkin Tim's fix to an error discussed on python-dev.Raymond Hettinger-10/+20
2004-09-12SF #1022910: Conserve memory with list.pop()Raymond Hettinger-8/+11
2004-09-10Typo fix: 'comparisions' is not a wordAndrew M. Kuchling-1/+1
2004-08-13SF patch #1005778, Fix seg fault if list object is modified during list.index()Neal Norwitz-3/+1
2004-08-08Previous commit was viewed as "perverse". Changed to just cast the unusedBrett Cannon-1/+3
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