mIRC Home    About    Download    Register    News    Help

Print Thread
#138409 31/12/05 12:06 AM
Joined: Mar 2005
Posts: 212
N
Fjord artisan
OP Offline
Fjord artisan
N
Joined: Mar 2005
Posts: 212
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

#138410 31/12/05 12:08 AM
Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
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.


Gone.
#138411 31/12/05 12:14 AM
Joined: Mar 2005
Posts: 212
N
Fjord artisan
OP Offline
Fjord artisan
N
Joined: Mar 2005
Posts: 212
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

Last edited by NeUtRoN_StaR; 31/12/05 12:15 AM.
#138412 31/12/05 12:37 AM
Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
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


Gone.
#138413 31/12/05 12:44 AM
Joined: Mar 2005
Posts: 212
N
Fjord artisan
OP Offline
Fjord artisan
N
Joined: Mar 2005
Posts: 212
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


Link Copied to Clipboard