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

Don't emit folder watcher changes every 1s #10825

Merged
merged 1 commit into from
Jun 1, 2023
Merged

Don't emit folder watcher changes every 1s #10825

merged 1 commit into from
Jun 1, 2023

Conversation

TheOneRing
Copy link
Member

@TheOneRing TheOneRing commented May 9, 2023

We currently gather changes for up to 1s and then handle them.
Often we then ignore them as nothing, interesting for us, changed.

This change increases the interval to 10s.
If the file changed 50 times in that interval we will now only check once instead of about 10 times.

Note: When we detect a change it does not mean instant upload, we will evaluate the file and queue it for the next sync run.

Estimated impact: Less noise in the logs, slight performance improvements.

@TheOneRing TheOneRing requested a review from a team May 9, 2023 13:52
@TheOneRing TheOneRing force-pushed the work/watcher branch 2 times, most recently from 258e636 to 82b5a1e Compare May 31, 2023 07:44
test/testfolderwatcher.cpp Show resolved Hide resolved
Copy link
Contributor

@michaelstingl michaelstingl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, okay… 😬

@TheOneRing TheOneRing merged commit 39f7416 into master Jun 1, 2023
@delete-merged-branch delete-merged-branch bot deleted the work/watcher branch June 1, 2023 11:15
@saw-jan
Copy link
Member

saw-jan commented Jul 5, 2023

@TheOneRing steps to confirm this?

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.

5 participants