diff options
author | Lioncash <mathew1800@gmail.com> | 2018-10-04 23:55:50 -0400 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-10-04 23:55:53 -0400 |
commit | 6f168262605d7979d8069cd9dad21932a522263d (patch) | |
tree | 79f732b0a01deca032c6d1cf6ab408c454c08037 /src/common/timer.h | |
parent | bc679c9b8c05d3db46da8cef77e729b31c6dbff5 (diff) |
text_formatter: Avoid unnecessary string temporary creation in PrintMessage()
operator+ for std::string creates an entirely new string, which is kind
of unnecessary here if we just want to append a null terminator to the
existing one.
Reduces the total amount of potential allocations that need to be done
in the logging path.
Diffstat (limited to 'src/common/timer.h')
0 files changed, 0 insertions, 0 deletions