Skip to content

Record the Rust build-speed experiments and correct the ring suggestion in the build profile note #1868

Closed

Description

@JacobStephens2

This was generated by AI during triage.

Agent Brief

Category: enhancement
Summary: Add the measured build-speed experiments to the Rust build profile research note, and correct its suggestion to switch rustls to ring.

Current behavior:
The research note Where the Rust build's time goes (docs/research/rust-build-profile.md, added in #1866) profiles a cold dev build and an edit rebuild. It has two problems:

Desired behavior:
The note corrects the ring paragraph as above, linking #203, #1592 and the Cargo.toml comment. It also gains an Experiments section with the measurements below and their conclusions. It keeps the existing style: plain prose, cited sources, and a Limits section. ADR-0001 stays unchanged.

Measurements, taken 2026-11-09 in the Lima VM (Ubuntu 24.04 aarch64, 4 vCPUs, 8 GiB, rustc 1.99.1) on a scratch Worktree at 82f88ec8:

  • Each time is wall-clock seconds around cargo build -q --bin thirdshift.
  • Each edit appended a comment to the Ticket run module (src/run.rs).
  • The first build after changing RUSTFLAGS rebuilds every crate, so it is left out of the edit column.
  • Nothing from these trees was committed.
Variant Cold build (s) Edit rebuild (s)
Baseline (system cc, GNU ld) 58.7 7.0, 7.0, 7.0
-C link-arg=-fuse-ld=lld 4.0, 4.2
-C link-arg=-fuse-ld=mold 3.8, 4.5
No axoupdater, reqwest on ring 42.4 6.8, 6.0, 6.5
Nightly 1.102.0 (2026-11-08), LLVM backend 62.2 7.1, 6.8, 6.7
Nightly, LLVM + lld 4.0, 4.4
Nightly, Cranelift backend 57.0 6.2, 6.1, 6.2
Nightly, Cranelift + lld 4.0, 3.9

The "No axoupdater" variant is #1592's end state for the build only:

  • It removed the axoupdater dependency.
  • It stubbed the update module's version check and update functions to return errors.
  • It switched reqwest to rustls-no-provider plus rustls 0.23 with ring and std.
  • cargo tree -i aws-lc-sys then found nothing.

It measures build weight, not a working updater.

Conclusions to record:

The Limits section should say: one to three samples per measurement, on a 4-vCPU aarch64 VM; a single trailing-comment edit; no workspace split measured.

Key interfaces:

  • Only the research note changes. Its existing Method and Results sections (the 65.6 s cold build and the --timings breakdown) stay as they are.

Acceptance criteria:

  • The note no longer presents switching reqwest to ring as a way to stop building aws-lc. It says why, citing Stop building aws-lc-sys, and axoupdater's image stack if a flag allows #203, Replace axoupdater with a small verified updater #1592 and the Cargo.toml comment.
  • An Experiments section reproduces the table above, with the method details: host, revision, how edits were made, and the excluded first build after a RUSTFLAGS change.
  • The note states that x86_64 Linux already links with LLD by default since Rust 1.90, with a link to the Rust 1.90.0 announcement, and that the linker saving applies to aarch64 hosts.
  • The Limits section no longer says no improvement has been measured.
  • No files other than the research note change.

Out of scope:

  • Changing Cargo.toml, adding a .cargo/config.toml, or replacing axoupdater; Replace axoupdater with a small verified updater #1592 covers the updater.
  • Re-running the measurements. The numbers above are the evidence, and the PR should say they came from this issue.
  • Editing the Go or TypeScript comparison reports, or ADR-0001.

Activity

  1. added
    enhancement
    ready-for-agent
    in-progress
    and removed
    ready-for-agent
    on Nov 9, 2026
  2. removed
    in-progress
    on Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions