A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2004-March/043783.html below:

[Python-Dev] genexps slow?

[Python-Dev] genexps slow? [Python-Dev] genexps slow?Raymond Hettinger python at rcn.com
Wed Mar 31 01:19:58 EST 2004
[Tim]
>  Make r a lot bigger, and I
> expect
> the genexp will get relatively faster (due to better cache behavior).

Also, try a timing with "sum(x for x in xrange(100000))".  This will
highlight the differences in behavior.  With xrange, this genexp will be
able to execute entirely in cache.


Raymond


More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4