Switch StringMap from an array of structures to a structure of arrays.
authorBenjamin Kramer <benny.kra@googlemail.com>
Tue, 27 Dec 2011 20:35:07 +0000 (20:35 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Tue, 27 Dec 2011 20:35:07 +0000 (20:35 +0000)
commitc894b02ae037b5fdb38e42535539d5a0e49d6c41
tree4224ea17ee6ca28dc887aa07808cf14c1ee94f7a
parent91968489d718b313d4c0b912062e75a82db650e7
Switch StringMap from an array of structures to a structure of arrays.

- -25% memory usage of the main table on x86_64 (was wasted in struct padding).
- no significant performance change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147294 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/StringMap.h
lib/Support/StringMap.cpp