Re: (Python) Generator Tricks For Systems Programmer (pdf)
by drats on Wednesday December 14, 2011 @06:06AM
(#3351406)
I love this pdf. The one thing I've been wanting is for the original author, or someone else with another ~1gig dataset, to do the test again with pypy and give us the speed figures.
[ Parent
| on HN ]
Re: (Python) Generator Tricks For Systems Programmer (pdf)
by bryanh on Wednesday December 14, 2011 @03:14PM
(#3353408)
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!