Parsing performance improvement.
authorRay Chen <rchen@cs.umd.edu>
Thu, 10 Feb 2011 22:47:20 +0000 (17:47 -0500)
committerRay Chen <rchen@cs.umd.edu>
Thu, 10 Feb 2011 22:47:20 +0000 (17:47 -0500)
commitf5e3d003066726984cde7fa43c4edbc704de2f59
tree463c9a0e5a4ab0b741a8d21ae0368df20374bcc3
parent4522e23f71e2c4f19cfbf5bcc09995d3b8c7b5e2
Parsing performance improvement.

The destructor for an IA_IAPI object at local scope inside the parsing
loop was determined to be responsible for 5-9% of total parsing time.

By replacing the IA_IAPI internal stl::map with an stl::vector, we are
able to move the object outside the loop, and reset it in constant time.

Thanks to Nate for finding and solving this problem.
12 files changed:
parseAPI/h/InstructionAdapter.h
parseAPI/src/IA_IAPI.C
parseAPI/src/IA_IAPI.h
parseAPI/src/IA_power.C
parseAPI/src/IA_powerDetails.C
parseAPI/src/IA_powerDetails.h
parseAPI/src/IA_x86.C
parseAPI/src/IA_x86Details.C
parseAPI/src/IA_x86Details.h
parseAPI/src/InstructionAdapter.C
parseAPI/src/Parser.C
testsuite/src/mutatee_driver.c