homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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:36methanesetrecipients: + methane
2014年03月27日 02:26:36methanesetmessageid: <1395887196.57.0.903293210902.issue21074@psf.upfronthosting.co.za>
2014年03月27日 02:26:36methanelinkissue21074 messages
2014年03月27日 02:26:35methanecreate

AltStyle によって変換されたページ (->オリジナル) /