Use a hash to minimize the search time. Keep the hash on disk to minimize the memory usage (and start-up time if this is a CGI app.) I.e. Use a DBM. For speed, you'll probably find BerkeleyDB is best.
-j-sauoq "My two cents aren't worth a dime.";
In reply to Re: Re: Re: Fast wordlist lookup for game
by sauoq
in thread Fast wordlist lookup for game
by jerrygarciuh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |