-
Committer:
John Arbash Meinel
-
Date:
2008-08-20 18:54:34 UTC
-
mto:
This revision was merged to the branch mainline in
revision
3644.
-
Revision ID:
john@arbash-meinel.com-20080820185434-t1y91biejviv7skx
Tweak some 'sum' lines.
change sum(len(b) for b in foo) to sum(map(len, foo))
This is a drastic improvement under lsprof, though it
turns out to be a minor to non-improvement in actual
time.
Under lsprof 272s => 123s (50%)
without lsprof 68s => 64s (minor)