| commit | f3a7988e3008729eaa54ea148e41b66e4442b7ad | [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 | 23a87716b57114e9b4f607042e3ec1af90d68c0a [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