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

[RFE] support --no-build in spago run as well #1303

Open
Hi-Angel opened this issue Nov 15, 2024 · 0 comments
Open

[RFE] support --no-build in spago run as well #1303

Hi-Angel opened this issue Nov 15, 2024 · 0 comments

Comments

@Hi-Angel
Copy link

spago bundle-app has a handy option that skips a bulid: --no-build. It would be great if this option was supported in spago run as well.

Usecase: when running purescript-written backend on a machine with which sources were shared via NFS, spago's attempt to rebuild sources slows down start up time considerably. I found via bpftrace that it's possible to "run" manually by executing node .spago/run.js.

Measuring running time for the code with its main replaced to main = pure unit shows:

Case Command Time
Uncached spago run 50.266 sec
Cached spago run 2.397 sec
Uncached node .spago/run.js 11.393 sec
Cached node .spago/run.js 0.434 sec

That's up to ≈78% improvement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant