summaryrefslogtreecommitdiffhomepage
path: root/test/util/fs_util.cc
diff options
context:
space:
mode:
authorNicolas Lacasse <nlacasse@google.com>2019-02-08 15:47:25 -0800
committerShentubot <shentubot@google.com>2019-02-08 15:48:23 -0800
commite884168e1ea5cd8be4d50c85a4ad4fbcdaca1e5c (patch)
tree15a4899c3a75b9a153ac2aedcb32fe468abea875 /test/util/fs_util.cc
parent967326131a875047c2b2d51bf4b2984ceefd4730 (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