197g / 197g/rustc-pathogen

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

Aperta
#1 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Shell
Stelle
5
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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
```

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
rust
Ambito
build-system
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.