Consider replacing unordered_maps in PropertyTrees with base::flat_map |
|||
Issue descriptionPropertyTrees have unordered_maps mappping node owners ids to node ids for each tree type. For the typical property tree size, a sorted vector + binary search is likely a better choice. Lookups in unordered_map have already caused at least one perf regression ( issue 670074 ).
,
Apr 18 2017
,
May 1 2017
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/dfcb08fa366cfdc45f3a18e5e421a34aa038af0b commit dfcb08fa366cfdc45f3a18e5e421a34aa038af0b Author: jaydasika <jaydasika@chromium.org> Date: Mon May 01 20:58:27 2017 cc : Replace unordered_maps with flat_map in property trees Because these maps should be small. BUG= 678397 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2848243003 Cr-Commit-Position: refs/heads/master@{#468403} [modify] https://crrev.com/dfcb08fa366cfdc45f3a18e5e421a34aa038af0b/cc/trees/property_tree.cc [modify] https://crrev.com/dfcb08fa366cfdc45f3a18e5e421a34aa038af0b/cc/trees/property_tree.h
,
May 13 2017
|
|||
►
Sign in to add a comment |
|||
Comment 1 by wkorman@chromium.org
, Jan 5 2017