197g / 197g/rustc-pathogen

The reason behind inflated compilation times in `deep-and-broad`

未关闭
#1 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Shell
星标
5
派生
0
PR 合并指标
30 天内没有已合并 PR

描述

This is a guess:

Old incremental builds seem not to be cleanup when the dependencies change. That leads to a quadratic number of remnant folders of incremental states. Since the incremental engine iterates *all of* them when finding a suitable build folder to pick off (and finds none), this will do a quadratic number of io actions.

Reasoning:

After executing the creation script for a while we find a ton of remanining incremental directories

```bash
$ find -type d -name 'deeper*' target/incremental | wc -l
5402
```

贡献指南

这个仓库没有索引到贡献指南

调研方向

The issue describes a potential cause of inflated compilation times in the `deep-and-broad` scenario, likely related to incremental compilation in rustc/cargo. Start by examining the script that creates the scenario and the target/incremental directories it leaves behind. Investigate how cargo manages incremental build folders and when they are cleaned up. Look for the code in cargo or rustc that iterates over these directories. Determine if old incremental states are being retained when dependencies change, leading to quadratic IO.

由索引模型根据 Issue 内容生成。

评估

技术栈
rust
领域
build-system
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。