summaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
authorPatrick Williams <patrick@stwcx.xyz>2017-06-01 19:19:09 -0500
committerPatrick Williams <patrick@stwcx.xyz>2017-06-02 15:13:46 +0000
commita71d0f15a3e2584a4f83f7cc6d9c9bbec99ea4f7 (patch)
tree72879445c57ed922fa203acd0d6913743d572b64 /Makefile.am
parentaeb726df2fb7e0a3510242337c79994592ed1523 (diff)
downloadipmi-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 'Makefile.am')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud