Buffer reads from the substituter
This greatly reduces the number of system calls.
This commit is contained in:
parent
75e12b8e66
commit
c5f9d0d080
2 changed files with 27 additions and 10 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue