diff options
author | Guido van Rossum <guido@python.org> | 1998-05-12 13:21:31 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-05-12 13:21:31 (GMT) |
commit | b298a300dd8c93da79dfd1d9bf1123b1af6641de (patch) | |
tree | 5ed4a703ddf2d8527cb32854535a28d7c11c78df /Lib/test | |
parent | e34ab30a3f09c68aabdecfa28497bdeb9c30f73b (diff) | |
download | cpython-b298a300dd8c93da79dfd1d9bf1123b1af6641de.zip cpython-b298a300dd8c93da79dfd1d9bf1123b1af6641de.tar.gz cpython-b298a300dd8c93da79dfd1d9bf1123b1af6641de.tar.bz2 |
Reduce memory requirements.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/sortperf.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/test/sortperf.py b/Lib/test/sortperf.py index d924c71..8355f7a 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 |