commit | dcbdb1d0177220a732c4d0b596e902918ef7c50a | [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 | c516c2054ef8b02be5a84a6bfbddaf384615b1d5 | |
parent | e96269099d8d800febc2d7df64de2188ad7fb3e8 [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