Stream: t-compiler/wg-incr-comp

Topic: rustc - incremental comp


view this post on Zulip kev (Dec 21 2020 at 17:10):

Hi,

are there any ideas/rfcs on how rustc will allow for incremental compilation between compilation sessions?

view this post on Zulip kev (Dec 21 2020 at 17:13):

My thought was that you'd need to save some information to disk about files which have been compiled/last modified and since you are going towards a query based system, you'd probably need to save the queries too. Which may lead to a large amount of data being saved to disk I think

view this post on Zulip Joshua Nelson (Dec 21 2020 at 17:17):

@kev rustc has had incremental compilation for some time now. You can read about it in the dev guide: https://rustc-dev-guide.rust-lang.org/query.html

view this post on Zulip kev (Dec 21 2020 at 17:20):

The guide says that incremental compilation is a simple extension to the query system, I thought that the query system was not implemented yet?

view this post on Zulip Joshua Nelson (Dec 21 2020 at 17:22):

not 100% of the compiler uses the query system (I think macro expansion still runs from scratch each time), but the vast majority does

view this post on Zulip kev (Dec 21 2020 at 17:24):

Oh I see, and I also see the section about persisting to disk, thank you


Last updated: Oct 21 2021 at 20:33 UTC