Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Author here. How long do your dev builds take, and what is it that you are building? Curious what kind of improvement you get with split-debuginfo enabled!

This project is a very small hyper/tokio backend API. However, I also work on a CLI tool [1] I created which has very fast recompile times, usually less than a second. Mostly because it's pretty light on dependencies.

[1]: https://github.com/jakedeichert/mask



In C++ land I’ve experienced the gamut from multi-minute clean builds to 30 minutes to 1.5 hours on the latest & greatest CPUs, even with ccache. 14s sounds like paradise to me.


Honest question, is there really no way to know whether what you wrote is working or not without waiting 20min-1H?? That sounds like hell.

Where these incremental compilation?


That’s usually clean builds. Incremental builds can be in the instant to 1-5 min depending on what line of code you change (deploy a new compiler and you’re probably rebuilding everything).


Oh ok, that makes much more sense.


It’s a C++ project for an embedded device, so my comment was more a reflection on build times in general rather than being Rust related.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: