forked from oxidecomputer/crucible
-
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.
Remove a superfluous copy during write serialization (oxidecomputer#1087
) Right now, we copy data from a `BlockOp::Write/WriteUnwritten` into a `BytesMut` buffer, encrypt it in-place, then serialize it using `CrucibleEncoder`. Serialization requires a *second* full copy of the data. This is noticeable in our flamegraphs for large writes; see the PR for images. This change removes that `memcpy`, speeding up large writes by a noticeable amount; when the PR was first opened, I saw a ~30% speedup for 1M and 4M random writes.
- Loading branch information
Showing
12 changed files
with
614 additions
and
270 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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.