diff options
author | Nicolas Lacasse <nlacasse@google.com> | 2019-02-08 15:47:25 -0800 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2019-02-08 15:48:23 -0800 |
commit | e884168e1ea5cd8be4d50c85a4ad4fbcdaca1e5c (patch) | |
tree | 15a4899c3a75b9a153ac2aedcb32fe468abea875 /test/util/fs_util.cc | |
parent | 967326131a875047c2b2d51bf4b2984ceefd4730 (diff) |
Encode stat to bytes manually, instead of calling CopyObjectOut.
CopyObjectOut grows its destination byte slice incrementally, causing
many small slice allocations on the heap. This leads to increased GC and
noticeably slower stat calls.
PiperOrigin-RevId: 233140904
Change-Id: Ieb90295dd8dd45b3e56506fef9d7f86c92e97d97
Diffstat (limited to 'test/util/fs_util.cc')
0 files changed, 0 insertions, 0 deletions