diff options
author | Brian Silverman <brian@peloton-tech.com> | 2016-07-19 16:44:26 -0700 |
---|---|---|
committer | Brian Silverman <brian@peloton-tech.com> | 2017-08-28 16:00:48 -0400 |
commit | 4d26df729c4172a4786fb4ca509a264dfd9b89dc (patch) | |
tree | 9174c7fead726638709296f2676f2321b44c14b4 /googlemock/scripts/fuse_gmock_files.py | |
parent | b43bfcf49166599955ba3713952bc6c0e96b421b (diff) | |
download | googletest-4d26df729c4172a4786fb4ca509a264dfd9b89dc.tar.gz googletest-4d26df729c4172a4786fb4ca509a264dfd9b89dc.tar.bz2 googletest-4d26df729c4172a4786fb4ca509a264dfd9b89dc.zip |
Speed up printing of characters which need hex escaping
This change speeds up the runtime of a value-parameterized test I have
which has lots of values with large strings full of unprintable
characters by 2x. I profiled it and traced most of the slowness during
googletest startup down to the way String::FormatHexInt was creating and
destroyed a stringstream for each character in the string for each
value.
Diffstat (limited to 'googlemock/scripts/fuse_gmock_files.py')
0 files changed, 0 insertions, 0 deletions