diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-06-07T12·00+0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-06-07T12·00+0200 |
commit | c5f9d0d08058bca4af0d22e8d46a7d84627c0aae (patch) | |
tree | 2568171b20f7ba9a11da750747fa2c93251aa725 /src/libstore/local-store.hh | |
parent | 75e12b8e666aa0b689f6b654d37c84be912ff6d4 (diff) |
Buffer reads from the substituter
This greatly reduces the number of system calls.
Diffstat (limited to 'src/libstore/local-store.hh')
-rw-r--r-- | src/libstore/local-store.hh | 5 |
1 files changed, 5 insertions, 0 deletions
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<class T> T getIntLineFromSubstituter(RunningSubstituter & run); + Path createTempDirInStore(); Path importPath(bool requireSignature, Source & source); |