[news.software.b] tuning dbz for large history files

fletcher@cs.utexas.edu (Fletcher Mattox) (11/18/90)

Is there any advantage to increasing DEFSIZE (or any other #defines)
in the cnews' dbz package to accomodate huge history files?
Huge is about 260000 keys.

Thanks
Fletcher

henry@zoo.toronto.edu (Henry Spencer) (11/18/90)

In article <14776@cs.utexas.edu> fletcher@cs.utexas.edu (Fletcher Mattox) writes:
>Is there any advantage to increasing DEFSIZE (or any other #defines)
>in the cnews' dbz package to accomodate huge history files?

Rarely.  If the growth is gradual, it will adapt itself automatically.
Every time expire is run, the hash table gets re-sized based on recent
history sizes.  DEFSIZE only determines where it starts when built from
scratch.  Also, the C News dbz, unlike the old one, handles overflow
correctly and fairly efficiently, so there is no disaster in temporarily
overshooting the table size.
-- 
"I don't *want* to be normal!"         | Henry Spencer at U of Toronto Zoology
"Not to worry."                        |  henry@zoo.toronto.edu   utzoo!henry