mIRC Homepage
Posted By: NeUtRoN_StaR need a quick reminder - 31/12/05 12:06 AM
i forget what the factor is for making a hash table

that is to say the relation between the size and the number of slots

if someone could remind me id appreciate it
Posted By: FiberOPtics Re: need a quick reminder - 31/12/05 12:08 AM
Ratio is x10.

Size 10 --> 100 items
Size 20 --> 200 items

It's no upper limit though, even if you specify N, you can always add more than Nx10 items, but it's less efficient.
Posted By: NeUtRoN_StaR Re: need a quick reminder - 31/12/05 12:14 AM
thats what i thought
thanks
what size do you think would be god for storing away messages i was gonna go with 5
i figured that would be more than enough
Posted By: FiberOPtics Re: need a quick reminder - 31/12/05 12:37 AM
If it's only for a small amount of data then it really won't make any difference.

Just think about how many away messages you will be storing on average, divide it by 10, and round it to the nearest integer smile
Posted By: NeUtRoN_StaR Re: need a quick reminder - 31/12/05 12:44 AM
well its not for me personally
but its hard to see anyone having more than 50 away messages so i guess ill go with 5
if that isnt enough space for some people theyll have to deal with the slip in performance
© mIRC Discussion Forums