-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove unnecessary allocations and Write calls.
This commit improves networking performance by 1) moving an unnecessary allocation to outside the hot loop and by 2) eliminating an unnecessary Write call. This result in ~7% faster throughput as measured via iperf3 and a custom Web service to measure requests per second. Note that this is *despite* the append call. Signed-off-by: Philipp Winter <phw@brave.com>
- Loading branch information
Philipp Winter
committed
May 10, 2023
1 parent
ee06501
commit 4f4385e
Showing
2 changed files
with
9 additions
and
13 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