GC performance with lists
Zentrader
zentraders at gmail.com
Tue Sep 4 11:33:32 EDT 2007
On Sep 4, 7:06 am, jo... at mit.edu wrote:
One thing to do is to calc i+1 etc before the j loop instead of on
every iteration. That is, calculate 600,000 times instead of
6*57*100,000=34,200,00, And in today's world, it probably won't make
a lot of difference, This is not related to gc but is a good
programming practice IMHO. Personal preference is to use a varialble
to store the result If I have to calculate something more than twice.
More information about the Python-list
mailing list