diff options
author | Patrick Williams <patrick@stwcx.xyz> | 2017-06-01 19:19:09 -0500 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2017-06-02 15:13:46 +0000 |
commit | a71d0f15a3e2584a4f83f7cc6d9c9bbec99ea4f7 (patch) | |
tree | 72879445c57ed922fa203acd0d6913743d572b64 /writefrudata.hpp | |
parent | aeb726df2fb7e0a3510242337c79994592ed1523 (diff) | |
download | ipmi-fru-parser-a71d0f15a3e2584a4f83f7cc6d9c9bbec99ea4f7.tar.gz ipmi-fru-parser-a71d0f15a3e2584a4f83f7cc6d9c9bbec99ea4f7.zip |
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 <patrick@stwcx.xyz>
Diffstat (limited to 'writefrudata.hpp')
0 files changed, 0 insertions, 0 deletions