mirror of https://git.suyu.dev/suyu/suyu
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.merge-requests/60/head
parent
bc679c9b8c
commit
6f16826260
Loading…
Reference in New Issue