rust-lang / rust-lang/rustc-perf

We should try to deduplicate dep trees between benchmarches.

Open
#657 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
732
Forks
189
Avg merge
10h 52m
Merged PRs (30d)
43

Description

A global build cache (to avoid a common workspace) would be great but probably hard.

The next best thing is likely allowing a single workspace to have multiple benchmarks, and using a single target directory for building their dependencies (e.g. the Servo crates might benefit from this).

We can also try to reuse -debug artifacts for -check builds, further reducing times (although that might be harder, since --emit=metadata produces rmetas different from --emit=metadata,link, and cargo check likely still can't use regular artifacts).

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by examining how benchmarks currently obtain separate workspaces and dependency target directories; the issue names no files or tests. Compare the proposed shared workspace and target directory approach with reuse of -debug artifacts for -check builds. Done means benchmark dependency trees are deduplicated without invalid artifact reuse.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
build-system, performance
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.