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

Issue 6711044: Remove std::set from PrefixSet checking code. (Closed)

Created:
9 years, 9 months ago by Scott Hess - ex-Googler
Modified:
9 years, 6 months ago
Reviewers:
lzheng
CC:
chromium-reviews
Visibility:
Public.

Description

Remove std::set from PrefixSet checking code. Some implementations of std::set<> make an allocation per element, with the allocations stitched into a list. This allows iterators to remain valid while other elements in the set are added or removed. Unfortunately, for small elements like SBPrefix in large sets like safe-browsing, this temporarily uses an unexpectedly large amount of memory. [Apologies if I got that wrong!] This refactors things to allow the std::vector<> version to be used. BUG=71832 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=78764

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -26 lines) Patch
M chrome/browser/safe_browsing/safe_browsing_database.cc View 4 chunks +30 lines, -26 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
Scott Hess - ex-Googler
9 years, 9 months ago (2011-03-18 18:38:27 UTC) #1
lzheng
9 years, 9 months ago (2011-03-18 21:39:01 UTC) #2
LGTM

Powered by Google App Engine
This is Rietveld 408576698