Use flat containers to reduce memory |
||||
Issue descriptionSome containers are really inefficient when used with small payloads. For example std::set<void*> uses only 20% of its memory for the payload. See more details here: https://docs.google.com/document/d/1YL1FORFMWo0FK0lMg7WsImnjNQ3ZpY0nK0NHGjkeHT4/edit?usp=sharing In some cases we can use "flat" containers that don't waste as much. One example is base::flat_set, which is drop-in replacement for std::set, and is more memory efficient. Companion flat_map container is about to land (https://codereview.chromium.org/2715433007).
,
Aug 21 2017
,
May 18 2018
,
Jan 11
Available, but no owner or component? Please find a component, as no one will ever find this without one. |
||||
►
Sign in to add a comment |
||||
Comment 1 by dskiba@chromium.org
, Mar 14 2017