Skip to content

Not a problem,how much time spent on waiting Martin compiling finished? #664

Answered by nyurik
sharkAndshark asked this question in Q&A
Discussion options

You must be logged in to vote

Rust in general tends to be far slower to compile than most other languages, see here for the in-depth reasoning. In general, incremental compilation should be relatively fast (i.e. if you only change Martin code itself, not any of the dependencies). In a way, this is a trade off between "i want to compile fast but crash at run time vs i want to spend more time compiling and catch more errors before I run my program"... I would prefer the later :)

P.S. That said, we can always try to optimize compile time by removing any unused dependencies, or in some cases - if we only use a part of the dependent crate, to use features of that crate to select just a part of the dependent crate to compile.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sharkAndshark
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants