From cd326a2aa4a5ad9118a56d2eff459c73b2ec9226 Mon Sep 17 00:00:00 2001 From: eldritch horrors Date: Mon, 4 Mar 2024 07:36:51 +0100 Subject: Merge pull request #9673 from pennae/drv-parse-opts optimize derivation parsing (cherry picked from commit 3511430902941f0f26dc71313a54bb5096f57305) Change-Id: I00f76dcd464a5811944613731501af504b6e8c29 --- src/libutil/serialise.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libutil/serialise.cc') 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 buf(8192); + std::array buf; while (true) { size_t n; try { -- cgit v1.2.3