Re: Hash Function
- Posted by cklester <cklester at yahoo.com> Nov 15, 2004
- 473 views
Derek Parnell wrote: > > Using the War&Peace file and my hashing algo, I got an average distribution > of 1.053133 tokens per bucket with a maximum of 4. I don't know what my average is, but I get a maximum of 40. That BYTES! I mean BITES! > That's right. The hashing algo isn't everything. Mine takes less than > 10% of the program's time. About 25% is taken up with token recognition. My biggest time waster is the hashing stuff. :/ -=ck "Programming in a state of EUPHORIA." http://www.cklester.com/euphoria/