Re: Need some help speeding up this loop

2008-10-30 Thread Arnaud Delobelle
On Oct 30, 2:24 am, erikcw <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm trying to write a loop that will build a list of "template > strings". > > My current implementation is *really slow*.  It took 15 minutes to > finish. (final len(list) was about 16k entries.) > > #combinations = 12 small templ

Re: Need some help speeding up this loop

2008-10-30 Thread Marc 'BlackJack' Rintsch
On Wed, 29 Oct 2008 19:24:32 -0700, erikcw wrote: > I'm trying to write a loop that will build a list of "template strings". > > My current implementation is *really slow*. It took 15 minutes to > finish. (final len(list) was about 16k entries.) What is `list` here? Do you mean ``len(templates

Need some help speeding up this loop

2008-10-29 Thread erikcw
Hi all, I'm trying to write a loop that will build a list of "template strings". My current implementation is *really slow*. It took 15 minutes to finish. (final len(list) was about 16k entries.) #combinations = 12 small template strings ie "{{ city }}, {{ state }}..." #states = either a django