in reply to Re: Add-A-Gram Performance
in thread Add-A-Gram Performance

One minor thing. The word file on the website contains NO uppercase letters nor any characters besides a-z (as a 'grep "^a-z"' of the file shows). So the lc is useless in this particular instance.

Replies are listed 'Best First'.
Re: Re: Re: Add-A-Gram Performance
by smgfc (Monk) on Feb 06, 2002 at 02:12 UTC
    Thanks alot. I actually didnt realize that, i just found that particular piece of code in Programming Perl, and didnt consider the dictionary file. I was about to take it out when i thought i would leave it, just incase I decided to use a different dictionary, etc. etc. So unless I am wrong in thinking lc is pretty effiecient I think I will leave it. Then again there are ~170,000 words in that dictionary file, so 680000 lc calls might slow it down a little! :) Thanks again!