diff options
author | Andrew MacIntyre <andymac@bullseye.apana.org.au> | 2003-12-28 07:43:56 (GMT) |
---|---|---|
committer | Andrew MacIntyre <andymac@bullseye.apana.org.au> | 2003-12-28 07:43:56 (GMT) |
commit | f1ca7f561c6e02509e17414825305ebcbd6f72b0 (patch) | |
tree | 05e27b4da0e97b3fec8536beb820c9a6d9d96c36 | |
parent | 30973414c5ec31cbd6314591d2f359e4b4c5889f (diff) | |
download | cpython-f1ca7f561c6e02509e17414825305ebcbd6f72b0.zip cpython-f1ca7f561c6e02509e17414825305ebcbd6f72b0.tar.gz cpython-f1ca7f561c6e02509e17414825305ebcbd6f72b0.tar.bz2 |
complete backout of listobject.c v2.171
-rw-r--r-- | Misc/ACKS | 1 | ||||
-rw-r--r-- | Misc/NEWS | 8 | ||||
-rw-r--r-- | Objects/listobject.c | 4 |
3 files changed, 0 insertions, 13 deletions
@@ -62,7 +62,6 @@ Finn Bock Paul Boddie Matthew Boedicker David Bolen -Duncan Booth Jurjen Bos Peter Bosch Eric Bouck @@ -118,14 +118,6 @@ Core and builtins same as split() except that it scans the string from the end working towards the beginning. See SF feature request 801847. -- in a thread on comp.lang.python, several people noted that list() - was much slower than in 2.1 and earlier versions of Python, when used - to create new lists from existing lists. Duncan Booth did some - research that uncovered an optimisation that, for lists below - about 100 elements, was actually slower than the normal case. The - special case criteria have been tightened to rectify the performance - regression. - Extension modules ----------------- diff --git a/Objects/listobject.c b/Objects/listobject.c index c9e6604..47673be 100644 --- a/Objects/listobject.c +++ b/Objects/listobject.c @@ -2242,10 +2242,6 @@ list_fill(PyListObject *result, PyObject *v) int n; /* guess for result list size */ int i; - /* if source is destination, we're done. */ - if (v == (PyObject *)result) - return 0; - n = result->ob_size; /* Special-case list(a_list), for speed. */ |