forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WebSocket] Reduce memcpy at WebSocketFrameParser::Decode()
This reduces memcpy by only storing incomplete header bytes that are only needed to store for next round decoding rather than whole data. This make the perf faster a bit: (Win10, local release build not fully optimized on Z840) ToT: 147 MB/s This: 154 MB/s (+4.5%) Bug: 865001 Change-Id: I52de6b178034d69d7ff538d31c2ed660504e04a3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1715921 Reviewed-by: Adam Rice <ricea@chromium.org> Reviewed-by: Yutaka Hirano <yhirano@chromium.org> Commit-Queue: Yoichi Osato <yoichio@chromium.org> Cr-Commit-Position: refs/heads/master@{#681743}
- Loading branch information
Yoichi Osato
authored and
Commit Bot
committed
Jul 29, 2019
1 parent
fc2a8d3
commit 9a74219
Showing
3 changed files
with
109 additions
and
94 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