Simplify code, it's not worth the imagined performance gain.
authorMilian Wolff <mail@milianw.de>
Tue, 2 Dec 2014 00:26:40 +0000 (01:26 +0100)
committerMilian Wolff <mail@milianw.de>
Tue, 2 Dec 2014 00:26:49 +0000 (01:26 +0100)
heaptrack_interpret.cpp

index a61f800..1b49ffe 100644 (file)
@@ -223,9 +223,7 @@ struct AccumulatedTraceData
         }
         const size_t id = m_internedData.size() + 1;
         m_internedData.insert(it, make_pair(str, id));
-        fputs("s ", stdout);
-        fputs(str.c_str(), stdout);
-        fputc('\n', stdout);
+        fprintf(stdout, "s %s\n", str.c_str());
         return id;
     }