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

Optimize and fix issues at PIBD cache. #68

Merged
merged 1 commit into from
Aug 16, 2024
Merged

Conversation

bayk
Copy link

@bayk bayk commented Aug 16, 2024

Optimize and fix issues at PIBD cache.

Previous version download process can stuck because late duplicate response was stored forever in cache. When cache size reached 15 elements, download stopped.

Also sync loop had waiting time 10 ms. It is too low, because checking for sync state takes CPU time. Instead we better to use that CPU time to applying requested data. With TOR normal response time 1-3 seconds, that why current sync sleep time is 500ms+500ms = 1 second.

@bayk bayk merged commit a9d5394 into master Aug 16, 2024
35 checks passed
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