From: "SHULTZ,BARRY (HP-Israel,ex1)" Date: 2000-12-31T20:00:22+09:00 Subject: [ruby-talk:8393] Re: speedup of anagram finder > -----Original Message----- > From: David Alan Black [mailto:dblack@candle.superlink.net] > Sent: Saturday, December 30, 2000 10:40 PM > To: ruby-talk@netlab.co.jp > Subject: [ruby-talk:8372] Re: speedup of anagram finder > > > So perhaps we should synchronize our word lists and see what happens. I'd appreciate it if you'd send me a zipped version of your word list. Along with word size, I thought maybe the length of the word list itself might be a factor, that prime2 has heavy initial overhead because of the array and then speeds :0) through the actual processing. My wordlist.txt file is very contrived. I entered about 150 words and then just copied that chunk over and over until I had around 20,000 words. I then made a few minor changes, so that I could debug a bit. But obviously, I get lots of anagram "hits" :0). > > Meanwhile, another thing that might be useful here is generalizing the > creation of the prime number array or hash: > Thanks a lot for the tip! I'll look into it as soon as I have time. Barry