-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf(jetsocat,dgw): remove to_vec calls from JMUX implementation (#973)
By removing a few `to_vec()` calls and reusing the `Bytes` buffer as-is, perfomance of JMUX proxy is increased by ~62.3%. Performance was measured using `iperf` on local network. JMUX proxy performance before this patch: > 0.0000-10.0493 sec 8.21 GBytes 7.02 Gbits/sec JMUX proxy performance after this patch: > 0.0000-19.0245 sec 25.2 GBytes 11.4 Gbits/sec This is still 78.6% slower than jetsocat regular TCP port forwarding.
- Loading branch information
Showing
4 changed files
with
26 additions
and
21 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