-
Notifications
You must be signed in to change notification settings - Fork 204
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
why tarpc so slow? #501
Comments
so bad performance!! |
Hi! Are you building with optimizations? |
yes.
|
all the code: |
@tikue i got the reason, because current tarpc implementing smuggle in private goods, in client and server, request and response are handled at the same time in the same thread, when there are many requests, responses starve!! when there are many responses, requests are hungry. we must poll requests and response in separated independent two thread, when there are requests and responses at the same time, one thread on one cpu core can read request, and at the same time another cpu core can send responses. |
Glad you figured it out! Is the fix in your application code? |
client:
server:
service:
performance:
The text was updated successfully, but these errors were encountered: