mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-11 18:45:17 -04:00
added a small trick to cache last request of RemoteDirModel::requestDirDetails
This commit is contained in:
parent
befeb44f07
commit
644c41e2e7
2 changed files with 35 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue