|
|
Created:
4 years, 5 months ago by maksims (do not use this acc) Modified:
4 years, 5 months ago CC:
chromium-reviews, cbentzel+watch_chromium.org, Maria Base URL:
https://chromium.googlesource.com/chromium/src.git@master Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
Description[HttpStreamParser]: Flush buffers as soon as request is sent.
This cl aims on reducing amount of memory used. Once request
is sent, flush buffers to free allocated memory.
BUG=622073
Committed: https://crrev.com/a4fc935d2fde3df3a7bb7d451b4a58f048ee225f
Cr-Commit-Position: refs/heads/master@{#405128}
Patch Set 1 #
Total comments: 4
Patch Set 2 : rebased + mmenke's comments #
Total comments: 1
Patch Set 3 : nit #Patch Set 4 : rebased #
Messages
Total messages: 25 (13 generated)
Description was changed from ========== memory BUG= ========== to ========== [HttpStreamParser]: Flush buffers as soon as request is sent. This cl aims on reducing amount of memory used. Once request is sent, flush buffers to free allocated memory. BUG=622073 ==========
maksim.sisov@intel.com changed reviewers: + eroman@chromium.org, mariakhomenko@chromium.org, mmenke@chromium.org
ptal
https://codereview.chromium.org/2130733003/diff/1/net/http/http_stream_parser.cc File net/http/http_stream_parser.cc (right): https://codereview.chromium.org/2130733003/diff/1/net/http/http_stream_parser... net/http/http_stream_parser.cc:477: // act like the request was successfully sent. Missed a spot. https://codereview.chromium.org/2130733003/diff/1/net/http/http_stream_parser... net/http/http_stream_parser.cc:477: // act like the request was successfully sent. I'd suggest adding a new state, DO_SEND_REQUEST_COMPLETE, and have it be the only method to call FlushBuffers(). Also, I'd add DCHECKs in DoLoop, after all the other DoSend cases, to make sure io_state_ is not NONE, to make sure we always go through the new state. I'd also add DCHECKs in HttpStreamParser::Read, to make sure the relevant fields are empty. Sound good? https://codereview.chromium.org/2130733003/diff/1/net/http/http_stream_parser... net/http/http_stream_parser.cc:1197: if (request_headers_) None of these ifs are necessary - refptrs have identical null checks when you clear them, and it's better to avoid unnecessary code (Binary size matters most for performance, 99 times out of 99.01).
Patchset #2 (id:20001) has been deleted
https://codereview.chromium.org/2130733003/diff/1/net/http/http_stream_parser.cc File net/http/http_stream_parser.cc (right): https://codereview.chromium.org/2130733003/diff/1/net/http/http_stream_parser... net/http/http_stream_parser.cc:477: // act like the request was successfully sent. On 2016/07/11 15:15:35, mmenke wrote: > I'd suggest adding a new state, DO_SEND_REQUEST_COMPLETE, and have it be the > only method to call FlushBuffers(). > > Also, I'd add DCHECKs in DoLoop, after all the other DoSend cases, to make sure > io_state_ is not NONE, to make sure we always go through the new state. I'd > also add DCHECKs in HttpStreamParser::Read, to make sure the relevant fields are > empty. Sound good? Do you like it now?
LGTM! https://codereview.chromium.org/2130733003/diff/40001/net/http/http_stream_pa... File net/http/http_stream_parser.cc (right): https://codereview.chromium.org/2130733003/diff/40001/net/http/http_stream_pa... net/http/http_stream_parser.cc:1220: void HttpStreamParser::FlushBuffers() { nit: You can inline this in HttpStreamParser::DoSendRequestComplete now.
The CQ bit was checked by maksim.sisov@intel.com
The patchset sent to the CQ was uploaded after l-g-t-m from mmenke@chromium.org Link to the patchset: https://codereview.chromium.org/2130733003/#ps60001 (title: "nit")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_androi...)
The CQ bit was checked by maksim.sisov@intel.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by maksim.sisov@intel.com
The CQ bit was checked by maksim.sisov@intel.com
The patchset sent to the CQ was uploaded after l-g-t-m from mmenke@chromium.org Link to the patchset: https://codereview.chromium.org/2130733003/#ps80001 (title: "rebased")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== [HttpStreamParser]: Flush buffers as soon as request is sent. This cl aims on reducing amount of memory used. Once request is sent, flush buffers to free allocated memory. BUG=622073 ========== to ========== [HttpStreamParser]: Flush buffers as soon as request is sent. This cl aims on reducing amount of memory used. Once request is sent, flush buffers to free allocated memory. BUG=622073 ==========
Message was sent while issue was closed.
Committed patchset #4 (id:80001)
Message was sent while issue was closed.
CQ bit was unchecked.
Message was sent while issue was closed.
Description was changed from ========== [HttpStreamParser]: Flush buffers as soon as request is sent. This cl aims on reducing amount of memory used. Once request is sent, flush buffers to free allocated memory. BUG=622073 ========== to ========== [HttpStreamParser]: Flush buffers as soon as request is sent. This cl aims on reducing amount of memory used. Once request is sent, flush buffers to free allocated memory. BUG=622073 Committed: https://crrev.com/a4fc935d2fde3df3a7bb7d451b4a58f048ee225f Cr-Commit-Position: refs/heads/master@{#405128} ==========
Message was sent while issue was closed.
Patchset 4 (id:??) landed as https://crrev.com/a4fc935d2fde3df3a7bb7d451b4a58f048ee225f Cr-Commit-Position: refs/heads/master@{#405128} |