commit | 8923d72252f30c1b9d6a5224aa78fe2837525392 | [log] [tgz] |
---|---|---|
author | Bart Van Assche <bvanassche@google.com> | Tue Jan 25 23:49:48 2022 +0000 |
committer | Bart Van Assche <bvanassche@google.com> | Tue Feb 15 00:09:34 2022 +0000 |
tree | 5e2983381e3106b5a973dd47598919e42f1b24a9 | |
parent | 20d59bd21b454405f19ca8d5b485197766ce586e [diff] |
Micro-optimize CgroupMap::ActivateControllers() The C++ string concatenation operator is inefficient because it always allocates a new string, even in cases where std::string::apppend() does not allocate a new string. Hence this patch that replaces string concatenation with a call to std::string::append(). Bug: 213617178 Test: Booted Android in Cuttlefish. Change-Id: I79bdb89e957d3cfb40e48ef00c3e5576b4f533a5 Signed-off-by: Bart Van Assche <bvanassche@google.com>