Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parallelize the call to the compiler with the execution of the command #641

Open
angelhof opened this issue Feb 20, 2023 · 0 comments
Open
Labels
enhancement New feature or request low-priority

Comments

@angelhof
Copy link
Member

We could improve pash by at the same time calling the compiler and start to execute the original command.

This would give some benefits (if done fast---which seems very hard) for scripts where command execution is so small that it ends even before the compiler finished its invocation.

Below follows a solution schematic from an early prototype:

## Solution Schematic:
##
##  (A)      (B)      (C)       (D)        (E)
## stdin --- tee --- eager --- seq.sh --- eager --- OUT_SEQ
##            \      (F)
##             \--- eager --- PAR_IN
##
## (1) If compiler fails, or sequential is done executing:
##     - cat OUT_SEQ > stdout
##
## (2) If compiler succeeds:
##     - USR1 to reroute so that it redirects to /dev/null
##     - PAR_IN redirect to par stdin.
@angelhof angelhof added enhancement New feature or request low-priority labels Feb 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request low-priority
Projects
None yet
Development

No branches or pull requests

1 participant