From: Guido van Rossum Date: Tue, 12 May 1998 13:21:31 +0000 (+0000) Subject: Reduce memory requirements. X-Git-Tag: v1.5.2a1~662 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b298a300dd8c93da79dfd1d9bf1123b1af6641de;p=python Reduce memory requirements. --- diff --git a/Lib/test/sortperf.py b/Lib/test/sortperf.py index d924c71f53..8355f7ada7 100644 --- a/Lib/test/sortperf.py +++ b/Lib/test/sortperf.py @@ -90,8 +90,11 @@ def tabulate(r): doit(L) # \sort doit(L) # /sort if n > 4: - L = map(operator.neg, map(operator.neg, L[:4]*(n/4))) + del L[4:] + L = L*(n/4) + L = map(lambda x: --x, L) doit(L) # ~sort + del L L = map(abs, [-0.5]*n) doit(L) # -sort print