diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-03-04 16:49:56 +0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-03-04 16:49:56 +0100 |
commit | 42bc395b63260e13f42e4bf348823799e78e445f (patch) | |
tree | 282cad864de6752d4ef4a02d8c6dc92cfece223f /src/libutil/serialise.cc | |
parent | ce113c32d27a24552a6420ea0c082c6886708759 (diff) |
Eliminate some large string copying
Diffstat (limited to 'src/libutil/serialise.cc')
-rw-r--r-- | src/libutil/serialise.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libutil/serialise.cc b/src/libutil/serialise.cc index a3cd4ff0d..5c45c890f 100644 --- a/src/libutil/serialise.cc +++ b/src/libutil/serialise.cc @@ -288,11 +288,11 @@ template PathSet readStrings(Source & source); void StringSink::operator () (const unsigned char * data, size_t len) { static bool warned = false; - if (!warned && s.size() > threshold) { + if (!warned && s->size() > threshold) { warnLargeDump(); warned = true; } - s.append((const char *) data, len); + s->append((const char *) data, len); } |