From d658b5fc389836a7eb916141dafca46e63ca12d3 Mon Sep 17 00:00:00 2001 From: James Turner Date: Sat, 5 Oct 2013 23:25:25 +0100 Subject: [PATCH] Use std::string.append, avoid string copying. Removes a hot-spot on the SVN update path. --- simgear/io/SVNReportParser.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/simgear/io/SVNReportParser.cxx b/simgear/io/SVNReportParser.cxx index 93695f16..758dd00d 100644 --- a/simgear/io/SVNReportParser.cxx +++ b/simgear/io/SVNReportParser.cxx @@ -442,11 +442,11 @@ public: } if (tagStack.back() == SVN_SET_PROP_TAG) { - setPropValue += string(s, length); + setPropValue.append(s, length); } else if (tagStack.back() == SVN_TXDELTA_TAG) { - txDeltaData += string(s, length); + txDeltaData.append(s, length); } else if (tagStack.back() == SVN_DAV_MD5_CHECKSUM) { - md5Sum += string(s, length); + md5Sum.append(s, length); } } -- 2.39.5