Descriptionbase: 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: . #Messages
Total messages: 11 (6 generated)
|