mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Reduce memory requirements.
This commit is contained in:
parent
e34ab30a3f
commit
b298a300dd
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue