diff options
author | Vic Yang <victoryang@google.com> | 2019-08-05 13:01:19 -0700 |
---|---|---|
committer | Vic Yang <victoryang@google.com> | 2019-08-05 13:02:50 -0700 |
commit | f3a7988e3008729eaa54ea148e41b66e4442b7ad (patch) | |
tree | 98490212a14c6beeade935ff74620580bf38cae3 /init/builtins.cpp | |
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
Diffstat (limited to 'init/builtins.cpp')
0 files changed, 0 insertions, 0 deletions