-
Notifications
You must be signed in to change notification settings - Fork 313
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
greatly simplify syncing of indexed-but-moved dirs
Personal benchmarks show a very significant performance gain when calling get_path(). This is because we are no longer scanning all the contents of every indexed-but-moved directory in _sync_all(), but rather intelligently appending the new paths of the directories to check for dirtiness to a deque used in the body of _sync_all(). Also fixes a few bugs (sorry, couldn't split this commit up): - Indexing symlinks always indexes the real path that symlink refers to - Fixes bug with the way new paths were calculated in recursive moves
- Loading branch information
Showing
3 changed files
with
245 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.