From 1cf480110879ffc8aee94b4b75999da405b71d7c Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 6 Mar 2017 13:56:20 +0100 Subject: [PATCH] Revert fa125b9b28bea25a4eeb4d39a71a481563127cb9 This causes quadratic performance. --- src/libutil/archive.hh | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/libutil/archive.hh b/src/libutil/archive.hh index c067cd2ad..607ebf8b2 100644 --- a/src/libutil/archive.hh +++ b/src/libutil/archive.hh @@ -75,12 +75,6 @@ struct TeeSink : ParseSink TeeSource source; TeeSink(Source & source) : source(source) { } - - void preallocateContents(unsigned long long size) override - { - source.data->reserve(source.data->size() + size + 1024); - }; - }; void parseDump(ParseSink & sink, Source & source);