You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
spago bundle-app
has a handy option that skips a bulid:--no-build
. It would be great if this option was supported inspago 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 viabpftrace
that it's possible to "run" manually by executingnode .spago/run.js
.Measuring running time for the code with its
main
replaced tomain = pure unit
shows:spago run
spago run
node .spago/run.js
node .spago/run.js
That's up to ≈78% improvement.
The text was updated successfully, but these errors were encountered: