DescriptionAvoid copying the data string when posting ImportantFileWriter write tasks
When binding the data string to a callback, the existing code copies the data which can be 1MB+ sometimes.
Use scoped_ptr to avoid unnecessary data copy.
BUG=None
Committed: https://crrev.com/1ad9bfe4e302fd57bbffd45ec9ad248893a7b2ba
Cr-Commit-Position: refs/heads/master@{#327234}
Patch Set 1 #
Messages
Total messages: 11 (3 generated)
|