commit | 9aa03c7093b3191b7e14c75a721b6adb6eec848d | [log] [tgz] |
---|---|---|
author | Vic Yang <victoryang@google.com> | Mon Aug 05 13:01:19 2019 -0700 |
committer | Vic Yang <victoryang@google.com> | Mon Aug 05 13:02:50 2019 -0700 |
tree | 98490212a14c6beeade935ff74620580bf38cae3 | |
parent | e97dffcb60e2d6aa2a67d88a0db6618bcc6de148 [diff] |
liblp: Make kDefaultGroup a string_view Changing the type of kDefaultGroup from std::string to std::string_view allows us to make it a constexpr object. Since kDefaultGroup is the only dirty object in liblp .bss at runtime, this change turns the .bss page clean and thus saves 4KB per library load. Bug: 138856262 Test: Boot cuttlefish and check liblp bss is clean for all 5 processes that are using it. Change-Id: I7d7c0992e0ab769f070807f24e1275ffed424b5b