Mercurial > hg > audiodb
diff lshlib.cpp @ 308:896679d8cc39
Added server-side loading of persistent index (LSH hashtables) via --load_index -d dbName -R radius -l sequenceLength. Queries using these parameters will lookup the memory-resident hashtable instead of loading one from disk.
author | mas01mc |
---|---|
date | Thu, 07 Aug 2008 01:53:38 +0000 |
parents | 921ba500a024 |
children | 81ad865402e7 |
line wrap: on
line diff
--- a/lshlib.cpp Wed Aug 06 21:23:14 2008 +0000 +++ b/lshlib.cpp Thu Aug 07 01:53:38 2008 +0000 @@ -404,6 +404,7 @@ // Interface to Locality Sensitive Hashing G G::G(float ww, Uns32T kk,Uns32T mm, Uns32T dd, Uns32T NN, Uns32T CC, float rr): H(kk,mm,dd,NN,CC,ww,rr), // constructor to initialize data structures + indexName(0), lshHeader(0), calling_instance(0), add_point_callback(0) @@ -417,6 +418,7 @@ // Optionally load the LSH tables into head-allocated lists in core G::G(char* filename, bool lshInCoreFlag): H(), // default base-class constructor call delays data-structure initialization + indexName(filename), lshHeader(0), calling_instance(0), add_point_callback(0)