use a std::map to search file hashes instead of sweeping the entire database (ouch)

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5963 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2012-12-10 22:25:57 +00:00
parent 3dd81f3e77
commit 2f7b7c4366
3 changed files with 44 additions and 4 deletions

View file

@ -257,6 +257,11 @@ class FileIndex
void *findRef(const std::string& path) const ;
bool extractData(const std::string& path,DirDetails& details) const ;
void updateHashIndex() ;
void recursUpdateHashIndex(DirEntry *) ;
std::map<std::string,FileEntry*> _file_hashes ;
};