summaryrefslogtreecommitdiff
path: root/Source/Core/Common/StringUtil.cpp
diff options
context:
space:
mode:
authorDavid Korth <gerbilsoft@gerbilsoft.com>2019-09-24 00:42:39 -0400
committerDavid Korth <gerbilsoft@gerbilsoft.com>2019-12-29 23:45:02 -0500
commit11339d77c6835dd908b86a92412686c46435e006 (patch)
tree6abb193c5bb8ef35b627d023648b18a11a16eddc /Source/Core/Common/StringUtil.cpp
parentf5fe69284200553e1890e55d82c53a60e9ed2ae3 (diff)
IsSettingSaveable.cpp: Significant code size reduction.
- Refactor the Config::System::Main check so we check system once, then we check for the section. - Use an std::array<> instead of std::vector<>. - Use an array of pointers instead of an array of ConfigLocation. The latter contains two std::string objects, whereas pointers are only 8 bytes (on 64-bit). Code size comparison: (64-bit Linux, gcc-9.2.0, release build) text data bss dec hex filename 16136 0 40 16176 3f30 IsSettingSaveable.cpp.o [before] 3933 720 0 4653 122d IsSettingSaveable.cpp.o [after] -12203 +720 -40 -11523 -2d03 Difference
Diffstat (limited to 'Source/Core/Common/StringUtil.cpp')
0 files changed, 0 insertions, 0 deletions