aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/serialise.cc
diff options
context:
space:
mode:
authoreldritch horrors <pennae@lix.systems>2024-03-04 07:36:51 +0100
committereldritch horrors <pennae@lix.systems>2024-03-04 07:36:51 +0100
commitcd326a2aa4a5ad9118a56d2eff459c73b2ec9226 (patch)
tree60f110c542c9e33e3eeb27319db3f02e838016c4 /src/libutil/serialise.cc
parent96f1a404d08d1dd00ef395bcdc53c7599c860ecf (diff)
Merge pull request #9673 from pennae/drv-parse-opts
optimize derivation parsing (cherry picked from commit 3511430902941f0f26dc71313a54bb5096f57305) Change-Id: I00f76dcd464a5811944613731501af504b6e8c29
Diffstat (limited to 'src/libutil/serialise.cc')
-rw-r--r--src/libutil/serialise.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/serialise.cc b/src/libutil/serialise.cc
index 6539abed1..910a760a9 100644
--- a/src/libutil/serialise.cc
+++ b/src/libutil/serialise.cc
@@ -78,7 +78,7 @@ void Source::operator () (char * data, size_t len)
void Source::drainInto(Sink & sink)
{
std::string s;
- std::vector<char> buf(8192);
+ std::array<char, 8192> buf;
while (true) {
size_t n;
try {