3 ms·
First, compile times can differ wildly based on the code in question. Big projects can take minutes where hobby projects take second. Also, people have vastly
by jackmott42 4y ago
First, compile times can differ wildly based on the code in question. Big projects can take minutes where hobby projects take second.
Also, people have vastly different work flows. Some people tend to slowly write a lot of code and compile rarely. Maybe they tend to have runtime tools to tweak things. Otherwise like to iterate really fast. Try a code change, see if the UI looks better or things run faster, and when you work like this even a compile time of 3 seconds can be a little bit annoying, and 30 seconds maddening.
- Taywee 4y agoIt's less about "big projects" and more about "what features are used". It's entirely possible for a 10kloc project to take much more time to build than a 100kloc project. Proc macros, heavy generic use, and the like will drive compile time way up. It's like comparing a C++ project that is basically "C with classes" vs one that does really heavy template dances. Notably, serde can drive up compile times a lot, which is why miniserde still exists and gets some use.