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:
parent
d73ffc552f
commit
3b9ea8452f
2 changed files with 37 additions and 9 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue