-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid redundant file copy when the file is newly allocated
When buildAppendFilePart is called with chunk data as the source we need to copy it as the lifetimes are decoupled; however for changed files, we've already allocated a vector for it so it's a waste to copy it as we can move instead.
- Loading branch information
Showing
1 changed file
with
8 additions
and
3 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