commit | 377d1ad61ac737eab56301c3a40c603c8e884aac | [log] [tgz] |
---|---|---|
author | Tom Cherry <tomcherry@google.com> | Fri Jun 14 14:34:54 2019 -0700 |
committer | Tom Cherry <tomcherry@google.com> | Fri Jun 14 14:55:27 2019 -0700 |
tree | 162cc996e10d1e841ddb01a9fc5136bfa583bc85 | |
parent | 4e223e605be04efa831f11aa5ff734a391a32174 [diff] |
Create android-base/format.h that includes fmtlib headers We're already including fmtlib statically in libbase, so let's also expose its functionality directly. Also create a small benchmark of the most common operations for format() and StringPrintf(): int, float, and string arguments. Note that fmt::format is faster than StringPrintf() in all of these cases. Test: build, run benchmark Change-Id: I1e18f13673dd89ea936ea5c51418fad723495b08