added a small trick to cache last request of RemoteDirModel::requestDirDetails

This commit is contained in:
csoler 2016-11-07 22:24:02 +01:00
parent befeb44f07
commit 644c41e2e7
2 changed files with 35 additions and 4 deletions

View file

@ -151,6 +151,12 @@ class RetroshareDirModel : public QAbstractItemModel
mutable int nIndex;
mutable std::vector<RemoteIndex> indexSet;
// This material attempts to keep last request in cache, with no search cost.
mutable DirDetails mLastDirDetails ;
mutable void *mLastPointer ;
mutable bool mLastRemote ;
mutable time_t mLastReq;
};
// This class shows the classical hierarchical directory view of shared files