[Python-Dev] genexps slow? (original) (raw)
Raymond Hettinger python at rcn.com
Wed Mar 31 01:19:58 EST 2004
- Previous message: [Python-Dev] genexps slow?
- Next message: [Python-Dev] genexps slow?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
[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
- Previous message: [Python-Dev] genexps slow?
- Next message: [Python-Dev] genexps slow?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]