You never want to use "1" as the size of the hash table, you should really use a minimum of 100. I forgot to mention that.. the "rule of thumb" applies to large values, not small ones.

You also should design your htable to make as little use of $hfind as possible..

$hget(name, ITEM) is the fastest way to access data associated with ITEM (it's the point of hash tables after all).. Try to use $hget to access your data unless you really need to *search*.. I doubt you do.

Do you have any specific issues with the code? I'm not sure what else to say... Like I said, you get better answers if you ask specific questions.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"