Shortcut store files before lstat

readdir() already returns the inode numbers, so we don't need to call
lstat to know if a file was already linked or not.
This commit is contained in:
Wout Mertens 2014-05-15 09:02:22 +02:00
parent d73ffc552f
commit 3b9ea8452f
2 changed files with 37 additions and 9 deletions

View file

@ -315,6 +315,7 @@ private:
#endif
InodeHash loadInodeHash();
Strings readDirectoryIgnoringInodes(const Path & path, const InodeHash & inodeHash, OptimiseStats & stats);
void optimisePath_(OptimiseStats & stats, const Path & path, InodeHash & inodeHash);
// Internal versions that are not wrapped in retry_sqlite.