commit | e54c0be60f5aa32ce06f4366a3c55db45c41093c | [log] [tgz] |
---|---|---|
author | Yi-Yo Chiang <yochiang@google.com> | Wed Aug 02 15:18:35 2023 +0800 |
committer | Yi-Yo Chiang <yochiang@google.com> | Thu Aug 03 01:31:16 2023 +0800 |
tree | 57f9ad802aa5030ea8f7f5bb7a18368361a312c1 | |
parent | da5323e2d6be16470b7ce2be118d41a497c7d9a6 [diff] |
libfstab: Optimize out C++ object copy * Edit / truncate string objects in-place, don't copy a temporary string object just for storing intermeidate results. * Replace copy construct semantics with move semantics. * Use range-based std::vector::insert() to move whole range. Bug: 293695109 Test: CtsFsMgrTestCases Change-Id: I5437303ba9900dbad3276a981413cba138f17157