Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve performance of analyze #83

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

greezybacon
Copy link
Collaborator

Overall, this results in about a 20% reduction in the CPU time of the analyze phase of the sync.

Jared Hancock added 3 commits January 30, 2019 16:04
This patch avoid resorting the directory tree after the sync. Instead,
it sorts the new items pulled during the sync and merges them into the
new tree without sorting both lists again.
This changes the function that converts the rsync listing to the tree
state files. In my tests, it reduces the time on a list of 250k files
from 12 seconds down to 7.
This significantly reduces the processor load in stripping the leading
12 chars from the tree state files. On my test file of 250k files, time
is reduced from 960ms to 140ms. Since the `strip_mode` function is used
four times on a normal run, this change saves 3s or processor time from
my test files.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant