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

Issue 2690853009: base: Add comments warning about using insert() a lot on flat_set. (Closed)

Created:
3 years, 10 months ago by danakj
Modified:
3 years, 10 months ago
Reviewers:
vmpstr, dcheng
CC:
chromium-reviews, vmpstr+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

base: Add comments warning about using insert() a lot on flat_set. insert() is an O(N) operation, making inserting N things O(N^2). Whereas building a container of things and inserting them into a new flat_set together is O(NlogN) instead. R=dcheng@chromium.org, vmpstr@chromium.org Review-Url: https://codereview.chromium.org/2690853009 Cr-Commit-Position: refs/heads/master@{#450525} Committed: https://chromium.googlesource.com/chromium/src/+/038533f0a32b7aa67cde74c577d09faef64a5505

Patch Set 1 #

Patch Set 2 : flatset-comment: . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -0 lines) Patch
M base/containers/flat_set.h View 1 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (6 generated)
danakj
3 years, 10 months ago (2017-02-14 20:26:00 UTC) #1
vmpstr
lgtm
3 years, 10 months ago (2017-02-14 20:32:37 UTC) #2
dcheng
LGTM
3 years, 10 months ago (2017-02-14 21:11:25 UTC) #6
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/2690853009/20001
3 years, 10 months ago (2017-02-14 22:15:05 UTC) #8
commit-bot: I haz the power
3 years, 10 months ago (2017-02-15 00:26:29 UTC) #11
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/038533f0a32b7aa67cde74c577d0...

Powered by Google App Engine
This is Rietveld 408576698