• Brian Silverman's avatar
    Speed up printing of characters which need hex escaping · 4d26df72
    Brian Silverman authored
    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.
    4d26df72
gtest-printers.cc 12.4 KB