Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(636)

Issue 2317283004: CopyOnWriteBuffer::SetSize to smaller size memcpy less. (Closed)

Created:
4 years, 3 months ago by danilchap
Modified:
4 years, 3 months ago
Reviewers:
kwiberg-webrtc
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

CopyOnWriteBuffer::SetSize to smaller size memcpy less. R=kwiberg@webrtc.org Committed: https://crrev.com/291cd8fac37a2efa026713d198d653bc083881db Cr-Commit-Position: refs/heads/master@{#14166}

Patch Set 1 : ... #

Total comments: 3

Patch Set 2 : SetSize allowed to decrease capacity now. #

Patch Set 3 : Revert SetSize allowed to decrease capacity. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -1 line) Patch
M webrtc/base/copyonwritebuffer.h View 1 2 1 chunk +7 lines, -1 line 0 comments Download

Messages

Total messages: 9 (4 generated)
danilchap
This optimization checks that when SetSize(12) called on a shared buffer of size 1212, only ...
4 years, 3 months ago (2016-09-08 17:06:28 UTC) #3
kwiberg-webrtc
lgtm https://codereview.webrtc.org/2317283004/diff/20001/webrtc/base/copyonwritebuffer.h File webrtc/base/copyonwritebuffer.h (right): https://codereview.webrtc.org/2317283004/diff/20001/webrtc/base/copyonwritebuffer.h#newcode229 webrtc/base/copyonwritebuffer.h:229: std::max(buffer_->capacity(), size)); You maintain the capacity of the ...
4 years, 3 months ago (2016-09-09 08:28:29 UTC) #4
danilchap
https://codereview.webrtc.org/2317283004/diff/20001/webrtc/base/copyonwritebuffer.h File webrtc/base/copyonwritebuffer.h (right): https://codereview.webrtc.org/2317283004/diff/20001/webrtc/base/copyonwritebuffer.h#newcode229 webrtc/base/copyonwritebuffer.h:229: std::max(buffer_->capacity(), size)); On 2016/09/09 08:28:29, kwiberg-webrtc wrote: > You ...
4 years, 3 months ago (2016-09-09 11:25:33 UTC) #5
danilchap
https://codereview.webrtc.org/2317283004/diff/20001/webrtc/base/copyonwritebuffer.h File webrtc/base/copyonwritebuffer.h (right): https://codereview.webrtc.org/2317283004/diff/20001/webrtc/base/copyonwritebuffer.h#newcode229 webrtc/base/copyonwritebuffer.h:229: std::max(buffer_->capacity(), size)); On 2016/09/09 11:25:33, danilchap wrote: > On ...
4 years, 3 months ago (2016-09-09 12:58:44 UTC) #6
danilchap
4 years, 3 months ago (2016-09-09 15:32:50 UTC) #8
Message was sent while issue was closed.
Committed patchset #3 (id:60001) manually as
291cd8fac37a2efa026713d198d653bc083881db (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698