-
-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(gateway, http, lavalink): Switch to fastrand and tokio-webso…
…ckets (#2239) This switches our websocket library from tokio-tungstenite (https://github.com/snapview/tokio-tungstenite/) to tokio-websockets (https://github.com/Gelbpunkt/tokio-websockets). tokio-tungstenite is very slow with releases and has a bloated dependency stack, while tokio-websockets is much more lightweight, more strictly RFC compliant, performs substantially better under heavy load and has support for SIMD. This also allows us to drop the custom TlsConnector logic. Additionally, this switches out rand for fastrand since tokio-websockets supports both and fastrand is "random enough" for our usage. The public API remains completely untouched by these changes. Signed-off-by: Jens Reidel <[email protected]>
- Loading branch information
Showing
12 changed files
with
130 additions
and
477 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.