4 ms·
What're compile times like?
by edflsafoiewq 7y ago
What're compile times like?
- todotask 7y agoDo you mean compile times for Nim or a project? It's accurate to test it yourself since it's free.
- pastage 7y agoProjects of any note are notoriously hard to test for yourself since they often use build systems. Golang is nice in this respect, pretty easy and fast.
- PMunch 7y agoNim projects typically use `nimble` that ships with the install. So all you would need to do is `nimble build` in the root folder and voilà! Of course that also pulls the dependencies from the package manager, so you might want to just extract the build step from the `.nimble` file if you wanted to time just the compilation.
- yumaikas 7y agoFor me, I'm seeing compile times averaging around 5-10 seconds, with outlier builds taking up to 40 seconds if the files in question aren't cached. It feels faster than Go, but I think part of that is down to Nim's compile output being verbose by default.
- mratsim 7y agoIt's fast, even when you use generics or metaprogramming. I have a couple of 10k+ LoC codebases.