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}


CrOS-Libchrome-Original-Commit: 038533f0a32b7aa67cde74c577d09faef64a5505
1 file changed
tree: 914d2e6e27542e803ee58f97c332670760fad1ae
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/