-
Notifications
You must be signed in to change notification settings - Fork 665
Update tungstenite to get client read performance improvement #2966
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
Update tungstenite to get client read performance improvement #2966
Conversation
They did a small change around the way the handle the read buffer resize which bring a perf improvement for bigger messages and smaller ones.
4e62805 to
2a837a3
Compare
|
Oh it looks like I need to check how I can run spacetime locally. As before I used the docker compose setup but that does not want to start with other errors then in the ci. E.g. it can not find all the crates and if I add them it is missing the feature setup in one crate. Is the docker setup still some supported or preferred way or should it be just run directly in development? |
|
@ResuBaka Alternatively, you can install from source and run CI errors are because tungstenite's |
|
Then maybe it is an issue with using the docker compose on linux? As I am getting this output: |
|
It is also the same on a fresh clone. |
525fbdb to
e7fcf7e
Compare
I don't know, mine works fine. Do you maybe have the deprecated |
I will check later but I should run the latest arch linux version e.g. 2.38.2 of docker compose. Maybe I need to rebuild the docker image it would want to build. I will try that later to see if that fixes the issue. On the other note, is that to be expected that Unity test fails? Or is it okay as I have not changed anything that should make that one fail or not even run correctly. |
Yeah it isn't allowed to read the Unity license data, because your PR is coming from outside the Thanks for your contribution! |
|
Now after using docker compose up --build it is working again. Should maybe have tried that first but I did not think about that. |
7fb4df4
Co-authored-by: Kim Altintop <kim@eagain.io>
Co-authored-by: Kim Altintop <kim@eagain.io>
Description of Changes
This updates the tungstenite lib to get two changes which make good improvements to the performance and reduces cpu usage.
API and ABI breaking changes
Expected complexity level and risk
1
Testing
For me testing it locally in my application my whole application used like 2x to 3x less cpu and the the over all time spend.
Before the Update. (I tried to have the time span for the profile but they could be off by like total time the application did run by 30s)
After the update.
Here are links to the two PRs.
snapview/tungstenite-rs#501
snapview/tungstenite-rs#496