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

Issue 2619373003: Replace std::deque usage in drp_event_store with a circular buffer. (Closed)

Created:
3 years, 11 months ago by sclittle
Modified:
3 years, 11 months ago
Reviewers:
tbansal1
CC:
chromium-reviews, tbansal+watch-data-reduction-proxy_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Replace std::deque usage in drp_event_store with a circular buffer. Since std::deque is memory inefficient for small numbers of elements, especially on Android, (see http://crbug.com/674287), this CL replaces the std::deque in DataReductionProxyEventStore with a simple circular buffer. BUG=679603 Review-Url: https://codereview.chromium.org/2619373003 Cr-Commit-Position: refs/heads/master@{#443073} Committed: https://chromium.googlesource.com/chromium/src/+/c37c6180c36f4c69be3bdccafbbc2a2bee556ed7

Patch Set 1 : Initial patchset #

Total comments: 6

Patch Set 2 : addressed comments #

Total comments: 2

Patch Set 3 : removed unneeded includes from .cc file #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -25 lines) Patch
M components/data_reduction_proxy/core/common/data_reduction_proxy_event_store.h View 1 4 chunks +14 lines, -12 lines 0 comments Download
M components/data_reduction_proxy/core/common/data_reduction_proxy_event_store.cc View 1 2 4 chunks +22 lines, -13 lines 0 comments Download

Messages

Total messages: 13 (6 generated)
sclittle
3 years, 11 months ago (2017-01-10 03:44:56 UTC) #3
tbansal1
Do you think we should wait a little bit to see if there is a ...
3 years, 11 months ago (2017-01-10 17:42:23 UTC) #4
sclittle
We could wait for a drop in replacement, but hopefully changing it to a circular ...
3 years, 11 months ago (2017-01-11 22:08:32 UTC) #5
tbansal1
lgtm % optional nit. https://codereview.chromium.org/2619373003/diff/40001/components/data_reduction_proxy/core/common/data_reduction_proxy_event_store.cc File components/data_reduction_proxy/core/common/data_reduction_proxy_event_store.cc (right): https://codereview.chromium.org/2619373003/diff/40001/components/data_reduction_proxy/core/common/data_reduction_proxy_event_store.cc#newcode8 components/data_reduction_proxy/core/common/data_reduction_proxy_event_store.cc:8: #include <stdint.h> nit, feel free ...
3 years, 11 months ago (2017-01-11 22:16:16 UTC) #6
sclittle
https://codereview.chromium.org/2619373003/diff/40001/components/data_reduction_proxy/core/common/data_reduction_proxy_event_store.cc File components/data_reduction_proxy/core/common/data_reduction_proxy_event_store.cc (right): https://codereview.chromium.org/2619373003/diff/40001/components/data_reduction_proxy/core/common/data_reduction_proxy_event_store.cc#newcode8 components/data_reduction_proxy/core/common/data_reduction_proxy_event_store.cc:8: #include <stdint.h> On 2017/01/11 22:16:15, tbansal1 wrote: > nit, ...
3 years, 11 months ago (2017-01-11 22:47:10 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2619373003/60001
3 years, 11 months ago (2017-01-11 22:48:29 UTC) #10
commit-bot: I haz the power
3 years, 11 months ago (2017-01-12 00:18:37 UTC) #13
Message was sent while issue was closed.
Committed patchset #3 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/c37c6180c36f4c69be3bdccafbbc...

Powered by Google App Engine
This is Rietveld 408576698