From c5f9d0d08058bca4af0d22e8d46a7d84627c0aae Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 7 Jun 2013 14:00:23 +0200 Subject: Buffer reads from the substituter This greatly reduces the number of system calls. --- src/libstore/local-store.hh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/libstore/local-store.hh') diff --git a/src/libstore/local-store.hh b/src/libstore/local-store.hh index 14a826b3a58d..4245156670a8 100644 --- a/src/libstore/local-store.hh +++ b/src/libstore/local-store.hh @@ -46,6 +46,7 @@ struct RunningSubstituter { Pid pid; AutoCloseFD to, from, error; + FdSource fromBuf; }; @@ -289,6 +290,10 @@ private: void startSubstituter(const Path & substituter, RunningSubstituter & runningSubstituter); + string getLineFromSubstituter(RunningSubstituter & run); + + template T getIntLineFromSubstituter(RunningSubstituter & run); + Path createTempDirInStore(); Path importPath(bool requireSignature, Source & source); -- cgit 1.4.1