Re: consistant failures on a new kind of spam

Brian Burton <[email protected]> Wed, 15 Nov 2006 13:53:56 -0500
Newsgroups gmane.mail.spam.spamprobe.general
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

David A. Lee wrote:
> How many bytes/slot for hash tables ? 
> Or even more direct question. How do I tell how full a hash table is ?
> Would be nice to have a simple command line like 
> 
> samprobe -how_full_is_it   
> ------------
> 1000 slots of 2000 used  50% full

I agree that would be incredibly useful.  The hash format uses 14 bytes 
per slot IIRC so you can roughly divide the size of the file in bytes by 
14 to get the number of slots.  The first few are reserved for internal use.

Right now you have to dump|wc to get the number of terms in the 
database.  I agree that's not very good.

All the best,
++Brian

-----BEGIN PGP SIGNATURE-----
Version: PGP Desktop 9.5.1 (Build 1557)
Charset: ISO-8859-1

wsBVAwUBRVtiRTxRyEoJfXIFAQi51wf7BlfdNA6D1PDeCIGiBMFFCTSgcQqezQ03
vSkw2v49eRHWpOQr7ByxeB3A3C0xNSfQFOpn/MFm4OX+Cca8V0jvzfz9VhvfOdXx
+32ukx6oXUsUJ8GIEVS0qkdOcj6yI6DhlYB7YNyFBAtbjMXCUmPfHgVynUQkgQTb
B/dQlTdf3QWS057PJ+Wme62YgBpu+AgJ0ouTAonopYYyWEb2VMvETJQwu4h67SiX
9XHvT8hVytfl928aMGxSQV87tIssvivVPOWvQpGv94jUrFcd3nEOAbA2NThpThKV
PHzaHBWvL+mC8owhI9IJ38quULHDabNR3NBnFCJOoyxLKTpiwDZ2yw==
=JimH
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV