Skip to content

Commit

Permalink
Revert fa125b9
Browse files Browse the repository at this point in the history
This causes quadratic performance.
  • Loading branch information
edolstra committed Mar 6, 2017
1 parent 689b825 commit 1cf4801
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/libutil/archive.hh
Expand Up @@ -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);
Expand Down

0 comments on commit 1cf4801

Please sign in to comment.