DescriptionRemove 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 #
Messages
Total messages: 2 (0 generated)
|