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

Issue 2807933002: Removing (dest != prev) check from LastUnique algorithm. (Closed)

Created:
3 years, 8 months ago by dyaroshev
Modified:
3 years, 7 months ago
Reviewers:
danakj, brettw
CC:
chromium-reviews, danakj+watch_chromium.org, vmpstr+watch_chromium.org, Alexander Yashkin
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Removing (dest != prev) check from LastUnique algorithm. This check returns false for the first part of the loop and returns true for the second one. We split this loop in two and remove this check. Review-Url: https://codereview.chromium.org/2807933002 Cr-Commit-Position: refs/heads/master@{#469016} Committed: https://chromium.googlesource.com/chromium/src/+/e01cd8a6d0e2addaca41d6e686d566d5050656a0

Patch Set 1 #

Total comments: 12

Patch Set 2 : Minimizing changes. #

Total comments: 7

Patch Set 3 : Comments. #

Total comments: 1

Patch Set 4 : Comments 2. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -15 lines) Patch
M base/containers/container_test_utils.h View 1 chunk +20 lines, -0 lines 0 comments Download
M base/containers/flat_tree.h View 1 2 3 1 chunk +18 lines, -15 lines 0 comments Download

Messages

Total messages: 29 (11 generated)
dyaroshev
S https://codereview.chromium.org/2807933002/diff/1/base/algorithm/benchmarks.cc File base/algorithm/benchmarks.cc (right): https://codereview.chromium.org/2807933002/diff/1/base/algorithm/benchmarks.cc#newcode1 base/algorithm/benchmarks.cc:1: // Copyright 2017 The Chromium Authors. All rights ...
3 years, 8 months ago (2017-04-08 16:48:03 UTC) #3
dyaroshev
Noticed typos. https://codereview.chromium.org/2807933002/diff/1/base/algorithm/sorted_ranges.h File base/algorithm/sorted_ranges.h (right): https://codereview.chromium.org/2807933002/diff/1/base/algorithm/sorted_ranges.h#newcode17 base/algorithm/sorted_ranges.h:17: // the equal group, they choose last. ...
3 years, 8 months ago (2017-04-08 17:03:13 UTC) #4
dyaroshev
https://codereview.chromium.org/2807933002/diff/1/base/algorithm/benchmarks.cc File base/algorithm/benchmarks.cc (right): https://codereview.chromium.org/2807933002/diff/1/base/algorithm/benchmarks.cc#newcode1 base/algorithm/benchmarks.cc:1: // Copyright 2017 The Chromium Authors. All rights reserved. ...
3 years, 8 months ago (2017-04-11 10:07:11 UTC) #5
danakj
Please add a one-line title to the CL description. See https://chris.beams.io/posts/git-commit/
3 years, 8 months ago (2017-04-12 15:44:22 UTC) #6
dyaroshev
On 2017/04/12 15:44:22, danakj (out sick) wrote: > Please add a one-line title to the ...
3 years, 8 months ago (2017-04-12 15:48:15 UTC) #8
danakj
https://codereview.chromium.org/2807933002/diff/1/base/algorithm/sorted_ranges.h File base/algorithm/sorted_ranges.h (right): https://codereview.chromium.org/2807933002/diff/1/base/algorithm/sorted_ranges.h#newcode33 base/algorithm/sorted_ranges.h:33: *out++ = *first; Wouldn't this preclude the container from ...
3 years, 8 months ago (2017-04-12 15:54:49 UTC) #10
dyaroshev
https://codereview.chromium.org/2807933002/diff/1/base/algorithm/sorted_ranges.h File base/algorithm/sorted_ranges.h (right): https://codereview.chromium.org/2807933002/diff/1/base/algorithm/sorted_ranges.h#newcode33 base/algorithm/sorted_ranges.h:33: *out++ = *first; On 2017/04/12 15:54:48, danakj (out sick) ...
3 years, 8 months ago (2017-04-12 16:00:01 UTC) #11
brettw
At a high level, this is harder for me to understand than the old implementation. ...
3 years, 8 months ago (2017-04-17 17:55:08 UTC) #12
brettw
I'm much more interested in having a better deque/queue implementation that uses a vector. This ...
3 years, 8 months ago (2017-04-17 21:47:50 UTC) #13
brettw
Is there a way we can get your performance advantage while keeping the implementation simple ...
3 years, 8 months ago (2017-04-24 05:07:49 UTC) #14
dyaroshev
On 2017/04/24 05:07:49, brettw (plz ping after 24h) wrote: > Is there a way we ...
3 years, 8 months ago (2017-04-26 09:54:56 UTC) #15
dyaroshev
On 2017/04/17 17:55:08, brettw (plz ping after 24h) wrote: > I've never heard of std::unique_copy, ...
3 years, 8 months ago (2017-04-26 20:07:15 UTC) #17
brettw
LGTM, just some comment suggestions. I like this approach much better. https://codereview.chromium.org/2807933002/diff/1/base/BUILD.gn File base/BUILD.gn (right): ...
3 years, 8 months ago (2017-04-26 21:48:51 UTC) #19
dyaroshev
@brettw I'm a bit confused with your comments - I deleted a few patchsets - ...
3 years, 7 months ago (2017-04-27 19:11:46 UTC) #21
dyaroshev
Ping @dana
3 years, 7 months ago (2017-05-02 23:52:14 UTC) #22
danakj
LGTM https://codereview.chromium.org/2807933002/diff/100001/base/containers/flat_tree.h File base/containers/flat_tree.h (right): https://codereview.chromium.org/2807933002/diff/100001/base/containers/flat_tree.h#newcode26 base/containers/flat_tree.h:26: // No duplicate elements found.. nit: just one ...
3 years, 7 months ago (2017-05-03 15:14:49 UTC) #23
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/2807933002/120001
3 years, 7 months ago (2017-05-03 15:24:13 UTC) #26
commit-bot: I haz the power
3 years, 7 months ago (2017-05-03 17:19:28 UTC) #29
Message was sent while issue was closed.
Committed patchset #4 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/e01cd8a6d0e2addaca41d6e686d5...

Powered by Google App Engine
This is Rietveld 408576698