Stream: general

Topic: faster-feedback-loops

Dale Wijnand (Jan 09 2019 at 18:03, on Zulip):

Every time I hack in rustc I think I must be doing something wrong to make my feedback loops so slow.

To verify I tweaked some stable attributes right in I ran ./ test --doc src/liballoc which completed in 0:21:43. Does that sound reasonable?

QuietMisdreavus (Jan 09 2019 at 18:05, on Zulip):

that tracks with what i've experienced - you may want to try adding --stage 1 to your call to cut out one layer of compiler builds

blitzerr (Jan 09 2019 at 18:49, on Zulip):

@Dale Wijnand I will also put a -i in there so that it builds incrementally.

centril (Jan 09 2019 at 18:49, on Zulip):

sometimes --keep-stage 1 also helps if you've only made changes to tests for example

blitzerr (Jan 09 2019 at 18:53, on Zulip):

@Dale Wijnand As a rule of thumb, after making some changes, I would just run
./ check, so that every thing type-checks without wasting much time, sort of early feedback. Then I would build the compiler upto stage 1 and build libstd with this new compiler.
./ build -i --stage 1 src/libstd
But as @centril points out, if I am just modifying the tests, I will keep stage 1 compiler.

blitzerr (Jan 09 2019 at 18:54, on Zulip):

More details

Dale Wijnand (Jan 09 2019 at 19:26, on Zulip):

Thank you, all.
I'll make to use -i, I was operating under the assumption that it had stabilised and was on by default (and the docs were just stale).
I'll keep learning how the various stages work so I know what to run.
Does check vs build/test suffer from

QuietMisdreavus (Jan 09 2019 at 19:31, on Zulip):

there's an entry in config.toml to turn on incremental all the time without the -i flag

Last update: Jul 16 2020 at 14:45UTC