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

Loosen locking around RPC calls for better multi-threading #148

Merged
merged 2 commits into from
Nov 2, 2024

Conversation

Kimahriman
Copy link
Owner

@Kimahriman Kimahriman commented Nov 2, 2024

Resolves #147

Instead of locking around the full RPC call, only lock around creating a new connection and putting the message on the queue for writing.

Adds a benchmark for doing 100 parallel file info calls. Result improved from 6s to 1.5s with these changes.

@Kimahriman Kimahriman merged commit 32510e9 into master Nov 2, 2024
8 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.

Improve RPC call locking
1 participant