-
Notifications
You must be signed in to change notification settings - Fork 608
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid extra copy when applying r-value Patch
Summary: Currently `apply` is a const method, which would copy the data. If we can discard the patch after applying, we can move the data instead. This diff optimized for StringPatch, eventually we want to use the same technique to optimize for other patches. Reviewed By: thedavekwon Differential Revision: D63044259 fbshipit-source-id: f73859ec558747c8cb66be165d2723cfd464e832
- Loading branch information
1 parent
1bec44a
commit ea7fad7
Showing
2 changed files
with
33 additions
and
14 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