Comment on (Python) Generator Tricks For Systems Programmer (pdf)parentComments−bryanh14yRunning the same scripts (mostly, except my Apache log lines were a bit longer) on a 1.1GB file resulted in:python 2.7.1: list - 15.7s / generator - 14.1spypy 1.7: list - 7.5s / generator - 7.7sOn a MBP 2.2ghz i7 w/8gb. Fun!−drats14yThanks, the future looks bright. Although RAM usage would be higher for pypy the improvement is massive.−bryanh14yI checked, PyPy used about 30mb, while vanilla Python was right around 3-4mb. So an order of magnitude.
Comments
Running the same scripts (mostly, except my Apache log lines were a bit longer) on a 1.1GB file resulted in:
python 2.7.1: list - 15.7s / generator - 14.1s
pypy 1.7: list - 7.5s / generator - 7.7s
On a MBP 2.2ghz i7 w/8gb. Fun!
Thanks, the future looks bright. Although RAM usage would be higher for pypy the improvement is massive.
I checked, PyPy used about 30mb, while vanilla Python was right around 3-4mb. So an order of magnitude.