3 ms·
> Except with PHP you hit refresh and it is done. With play you wait 10 seconds and it is done. There is a huge difference. eh? With incremental builds you sho
by virtualwhys 13y ago
> Except with PHP you hit refresh and it is done. With play you wait 10 seconds and it is done. There is a huge difference.
eh? With incremental builds you should be seeing far more 1 second recompilations than 10 second recompilations.
If you're getting 10 second recompiles, the following help:
1) sub projects, it's an absolute must for non-trivial apps
2) use a 3rd party build system (say, GruntJS) for assets
Also, be sure to ;clean;compile prior to starting an incremental build with ~run (and of course, do this from a play> prompt and not bash, you want a warm JVM)
- saryant 13y agoI do wonder how many compile time complaints are due to restarting SBT every time.
- virtualwhys 13y agoGood point, there's a lot to learn in Scala land as well as many ways to shoot oneself in the foot, cold JVM is a good place to start, ouch, glacial development ;-)
- copergi 13y agoI was testing with a trivial app, so 1 doesn't apply. There were no assets, so 2 doesn't apply. Ghc is notoriously slow at compiling, and it managed to recompile/reload the equivalence haskell test app in the time it takes to alt+tab and hit refresh.
- virtualwhys 13y agoGot a link to this trivial Play app that takes forever to compile (and the equivalent lightning fast Haskell app), or shall we just take you on your word?
- copergi 13y agoYes, I keep every test app I've ever written on hand just in case an infamous language_X troll demands proof anytime I mention that I saw the sky once and it looked blue.