4 ms·
Here is another way to look at it: $ while sleep 2; do make -s build; done What files are interesting is already encoded in your Makefile and make is pret
by johncoltrane 6y ago
Here is another way to look at it:
$ while sleep 2; do make -s build; done
What files are interesting is already encoded in your Makefile and make is pretty good at figuring out if a given file changed or not so, instead of duplicating efforts, run make every second or two and let it figure out what needs to be done.
It won't eat your memory or pool of file pointers and your CPU will barely feel it.
- anderspitman 6y agoThat's a solid approach if your dependencies are already managed by make, but languages like Rust and Go do their own dependency management, and Rust in particular is pretty slow to compile. I wouldn't want it running every 2 seconds.