Message214928
| Author |
methane |
| Recipients |
methane |
| Date |
2014年03月27日.02:26:35 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1395887196.57.0.903293210902.issue21074@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
When I run following script:
def uncalled():
x = b'x' * (2**32)
print('Hello')
Python 3.4 consumes huge memory in spite of uncalled() function isn't called.
$ /usr/bin/time -l /usr/local/bin/python2 constant_folding.py
Hello
0.02 real 0.01 user 0.00 sys
4337664 maximum resident set size
$ /usr/bin/time -l /usr/local/bin/python3 constant_folding.py
Hello
2.76 real 1.36 user 1.39 sys
4300234752 maximum resident set size
Both of Python 2.7.6 and Python 3.4.0 is built with Homebrew. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2014年03月27日 02:26:36 | methane | set | recipients:
+ methane |
| 2014年03月27日 02:26:36 | methane | set | messageid: <1395887196.57.0.903293210902.issue21074@psf.upfronthosting.co.za> |
| 2014年03月27日 02:26:36 | methane | link | issue21074 messages |
| 2014年03月27日 02:26:35 | methane | create |
|