Message86659
No wonder it's quadratic (rather than exponential), since summing will
invoke the + operator and therefore produce a new list object at every
iteration.
If you use "f = f + l" in your explicit version, it becomes quadratic too. |
|
Date |
User |
Action |
Args |
2009-04-27 12:38:34 | pitrou | set | recipients:
+ pitrou, sjohn |
2009-04-27 12:38:34 | pitrou | set | messageid: <1240835914.48.0.8038309462.issue5855@psf.upfronthosting.co.za> |
2009-04-27 12:38:33 | pitrou | link | issue5855 messages |
2009-04-27 12:38:33 | pitrou | create | |
|