boot

:boot-clj: https://boot-clj.github.io/ — build tooling for Clojure. Dev chat in #boot-dev
Daniel Östling 2020-06-14T23:31:37.038300Z

When boot build target -d target is several times slower than "normal"/expected on macOS, what's the most common things people investigate? Does having 10GB test data in project directory impact something like that? I'm taking a simple measurement of build time now, but it's several minutes, whereas lein uberjar took 15 seconds to complete. I'm obviously doing something wrong 🙂

flyboarder 2020-06-15T16:52:25.039Z

10GB in your project? OMG that would probably murder the hard drive, boot tasks copy the project dir to their own temp folder, this could result in huge hard drive usage

flyboarder 2020-06-15T16:53:22.039200Z

you should probably break up the project into smaller modules

flyboarder 2020-06-15T16:53:54.039400Z

unless the test data is something like a database, then you just need to filter the fileset to remove it

Daniel Östling 2020-06-17T08:28:45.041100Z

Thanks, but I tested this without having the test data in the project base dir.

Daniel Östling 2020-06-17T08:31:48.041300Z

Additionally, target dir is ~23 MB so I don't think it's copying those 10GB test data.

Daniel Östling 2020-06-17T08:32:45.041500Z

Unless it's copying and discarding of course. This is on nvme drives, so it takes ~20s to copy that data.

Daniel Östling 2020-06-14T23:57:52.038400Z

$ /usr/bin/time boot build target -d target
Compiling 1/1 test-proj.core...
Writing pom.xml and pom.properties...
Adding uberjar entries...
Writing test-proj-0.1.0.jar...
Writing target dir(s)...
     1632.47 real        40.66 user       364.85 sys