diff lshlib.h @ 523:83e37b76b483 multiprobeLSH

insert some statistics gathering for hash tables, add _LSH_DEBUG_ macro to output LSH statistics on INDEX and QUERY
author mas01mc
date Wed, 28 Jan 2009 05:18:14 +0000
parents fdcd436d7cbd
children 469b50a3dd84
line wrap: on
line diff
--- a/lshlib.h	Tue Jan 27 14:52:28 2009 +0000
+++ b/lshlib.h	Wed Jan 28 05:18:14 2009 +0000
@@ -94,9 +94,13 @@
 #define WRITE_UNS32(VAL, TOKENSTR) if( fwrite(VAL, sizeof(Uns32T), 1, dbFile) != 1 ){\
   fclose(dbFile);error("write error in serial_write_format2",TOKENSTR);}	
 
-//#define LSH_DUMP_CORE_TABLES  // set to dump hashtables on load
+#define LSH_DUMP_CORE_TABLES  // set to dump hashtables on load
+#define _LSH_DEBUG_             // turn on debugging information
+
 //#define USE_U_FUNCTIONS       // set to use partial hashfunction re-use
 
+
+
 // Backward-compatible CORE ARRAY lsh index
 #define LSH_CORE_ARRAY  // Set to use arrays for hashtables rather than linked-lists
 #define LSH_LIST_HEAD_COUNTERS // Enable counters in hashtable list heads
@@ -232,6 +236,7 @@
   Uns32T bucketCount;  // count of number of point buckets allocated
   Uns32T pointCount;    // count of number of points inserted
   Uns32T collisionCount; // number of points collided in a hash-table row
+  Uns32T tablesPointCount; // count of points per hash table on load
 
   Uns32T t1;       // first hash table key
   Uns32T t2;       // second hash table key