Re[2]: Hash table formula - now more of a tre

angus@EDGIL.CCMAIL.COMPUSERVE.COM
Date: 08/12/97


______________________________ Reply Separator _________________________________
personally this entire hash array argument for command sets seems rather
stupid.

I'd probably use a pointer to a pointer array of strutures.

struct command **cmd_list;

And then just selectively malloc down the list, carving as I go along.

original pointer is an array of first letters, each array element points
to an array of of elements within that letter.

Or else I'd scrap that and use a mini- MD5 scheme. =)
     <------ Quote

     *tilts his head to the side* care to give an example of how this would
     look. (the ** part) what is MD5?  me, I'm just waiting to see comments
     on the stuff that I posted.  I was really pleased with the fact that
     you could have 2 words starting with the same letters but widely
     separated.

     --Angus


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/08/00 PST