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>
1 file changed
tree: 72879445c57ed922fa203acd0d6913743d572b64
  1. scripts/
  2. .gitignore
  3. argument.cpp
  4. argument.hpp
  5. bootstrap.sh
  6. configure.ac
  7. fru-area.hpp
  8. frup.cpp
  9. frup.hpp
  10. LICENSE
  11. Makefile.am
  12. readeeprom.cpp
  13. README.md
  14. strgfnhandler.cpp
  15. types.hpp
  16. writefrudata.cpp
  17. writefrudata.hpp
README.md

To Build

To build this package, do the following steps:

    1. ./bootstrap.sh
    2. ./configure ${CONFIGURE_FLAGS}
    3. make

To full clean the repository again run `./bootstrap.sh clean`.