path: root/argument.hpp
diff options
authorPatrick Williams <>2017-06-01 19:19:09 -0500
committerPatrick Williams <>2017-06-02 15:13:46 +0000
commita71d0f15a3e2584a4f83f7cc6d9c9bbec99ea4f7 (patch)
tree72879445c57ed922fa203acd0d6913743d572b64 /argument.hpp
parentaeb726df2fb7e0a3510242337c79994592ed1523 (diff)
fru_gen: eliminate unnecessary maps
The type of the generated fru data contained a map of a map of a map of a map, but for all except the outermost map, all elements were iterated over when using the map. Therefore, change them to a vector<pair<...>> instead. Vector should generate smaller code and allow faster iteration. Vector insert and iteration are both linear where as map is O(n lg n). Change-Id: I475e5a40b4051e4ce9478a565c889c1751241987 Signed-off-by: Patrick Williams <>
Diffstat (limited to 'argument.hpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud