improving a huge double-for cycle

Tino Wildenhain tino at wildenhain.de
Fri Sep 19 01:11:51 EDT 2008


Hi,

Terry Reedy wrote:
...
> Yes, after figuring out what to do from the original post, I saw yours 
> and then Pruebono's and decided that since two people had submitted the 
> jackpot algorithm, I need not say more.  I will say this: this solution 
> amounts to finding equivalence classes (the sets of items with a given 
> 'key') and then finding the classes (sets) with more than one member. 
> Defaultdict is great for this.

I must say mine works with at least similar performance. Maybe its a
timezone issue but I also provided a simple test to my solution.

Also I never saw a list where the threading often goes wrong like
this here - is there any special setup or is it just peoples MUA
which screws up?

T.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3241 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mail.python.org/pipermail/python-list/attachments/20080919/591f0c83/attachment.bin>


More information about the Python-list mailing list