Skip to content

perf: improve websockets performance#68

Merged
Berrysoft merged 1 commit into
compio-rs:masterfrom
abh1nav10:optimize-websockets
Jul 21, 2026
Merged

perf: improve websockets performance#68
Berrysoft merged 1 commit into
compio-rs:masterfrom
abh1nav10:optimize-websockets

Conversation

@abh1nav10

@abh1nav10 abh1nav10 commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Improves cyper-axum websockets performance by a significant margin by avoiding zeroing out an already zeroed out buffer.

Addresses #66, in which further improvements after this can be made only upon using io::Read::read_buf which means that it probably closes the issue as read_buf stabilization issue does not belong here.

Also addresses #53.

Fixes the problem of the underlying buffer getting zeroed out twice. It
now happens only once and is done by the tungstenite crate. We use that
information to avoid redoing the same work.
@abh1nav10
abh1nav10 force-pushed the optimize-websockets branch from 552d7a3 to b707de8 Compare July 21, 2026 14:17
@Berrysoft
Berrysoft merged commit 6e21369 into compio-rs:master Jul 21, 2026
33 checks passed
@abh1nav10
abh1nav10 deleted the optimize-websockets branch July 21, 2026 14:51
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.

2 participants