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

Issue 1744293002: Lazily allocate input buffer for AsyncTCPSocket. (Closed)

Created:
4 years, 9 months ago by joachim
Modified:
4 years, 9 months ago
Reviewers:
tommi
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Lazily allocate input buffer for AsyncTCPSocket. As a follow-up to https://codereview.webrtc.org/1737053006/ this CL further improves memory usage by lazily allocating input buffers up to the passed maximum size. This also changes the input buffer to a Buffer object. BUG= Committed: https://crrev.com/313afba2ebc702d2d6f1b871025f8a671a43ee8f Cr-Commit-Position: refs/heads/master@{#11859}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Feedback from Tommi. #

Patch Set 3 : Updated TODOs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -17 lines) Patch
M webrtc/base/asynctcpsocket.h View 1 chunk +2 lines, -2 lines 0 comments Download
M webrtc/base/asynctcpsocket.cc View 1 2 5 chunks +41 lines, -15 lines 0 comments Download

Messages

Total messages: 20 (5 generated)
joachim
Ptal, here is another memory optimization for tcp sockets.
4 years, 9 months ago (2016-02-29 17:20:18 UTC) #2
tommi
https://codereview.webrtc.org/1744293002/diff/1/webrtc/base/asynctcpsocket.cc File webrtc/base/asynctcpsocket.cc (right): https://codereview.webrtc.org/1744293002/diff/1/webrtc/base/asynctcpsocket.cc#newcode35 webrtc/base/asynctcpsocket.cc:35: // The input buffer will be resized up to ...
4 years, 9 months ago (2016-03-01 09:22:13 UTC) #3
joachim
Please see my comments below. https://codereview.webrtc.org/1744293002/diff/1/webrtc/base/asynctcpsocket.cc File webrtc/base/asynctcpsocket.cc (right): https://codereview.webrtc.org/1744293002/diff/1/webrtc/base/asynctcpsocket.cc#newcode35 webrtc/base/asynctcpsocket.cc:35: // The input buffer ...
4 years, 9 months ago (2016-03-01 10:55:23 UTC) #4
tommi
lgtm with someone that's currently working on the code owning the TODO. https://codereview.webrtc.org/1744293002/diff/1/webrtc/base/asynctcpsocket.cc File webrtc/base/asynctcpsocket.cc ...
4 years, 9 months ago (2016-03-01 17:42:42 UTC) #5
joachim
https://codereview.webrtc.org/1744293002/diff/1/webrtc/base/asynctcpsocket.cc File webrtc/base/asynctcpsocket.cc (right): https://codereview.webrtc.org/1744293002/diff/1/webrtc/base/asynctcpsocket.cc#newcode211 webrtc/base/asynctcpsocket.cc:211: // TODO: Do something better like forwarding the error ...
4 years, 9 months ago (2016-03-02 08:32:18 UTC) #6
tommi
let's go with stefan
4 years, 9 months ago (2016-03-02 16:16:13 UTC) #7
joachim
Done
4 years, 9 months ago (2016-03-02 16:23:13 UTC) #8
joachim
On 2016/03/02 16:23:13, joachim wrote: > Done Sorry, what's your policy on this? Can I ...
4 years, 9 months ago (2016-03-03 08:23:45 UTC) #9
tommi
On 2016/03/03 08:23:45, joachim wrote: > On 2016/03/02 16:23:13, joachim wrote: > > Done > ...
4 years, 9 months ago (2016-03-03 09:26:44 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1744293002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1744293002/40001
4 years, 9 months ago (2016-03-03 09:27:02 UTC) #12
joachim
On 2016/03/03 09:26:44, tommi-webrtc wrote: > On 2016/03/03 08:23:45, joachim wrote: > > On 2016/03/02 ...
4 years, 9 months ago (2016-03-03 10:04:15 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg on tryserver.webrtc (JOB_TIMED_OUT, no build URL)
4 years, 9 months ago (2016-03-03 11:27:48 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1744293002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1744293002/40001
4 years, 9 months ago (2016-03-03 11:37:31 UTC) #17
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 9 months ago (2016-03-03 11:41:10 UTC) #18
commit-bot: I haz the power
4 years, 9 months ago (2016-03-03 11:41:21 UTC) #20
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/313afba2ebc702d2d6f1b871025f8a671a43ee8f
Cr-Commit-Position: refs/heads/master@{#11859}

Powered by Google App Engine
This is Rietveld 408576698