-
Notifications
You must be signed in to change notification settings - Fork 847
Closed
Labels
Milestone
Description
I primarily use stack exec to execute the executables I have just built. In the vast majory of cases (probably also for other people) all stack exec needs to do is set the PATH correctly since my executables don’t depend on any other settings. However the overhead stack exec adds has slowly grown to the point where it becomes annoying:
stack exec shake-reve -- --help 0.91s user 0.19s system 99% cpu 1.101 total
vs
./.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/shake-reve/shake-reve 0.01s user 0.00s system 72% cpu 0.009 total
I realize that to completely set up the environment stack exec has to do more than just set the path correctly but if that causes such a drastic slowdown, could we get a --fast (probably needs a better name) option for the common case where it just needs to set the path?