Skip to content

regression: crate compiles much slower with 1.82 #132064

@Nutomic

Description

@Nutomic

Our project takes much longer to compile with Rust 1.82 compared to previous versions. To reproduce, git clone https://github.com/LemmyNet/lemmy.git and run cargo check (also happens with build or lint). The problem happens specifically with the crate lemmy_db_views.

cargo check with 1.82: 6m 19s

cargo check with 1.81: 1m 22s

Version it worked on

It most recently worked on:1.81

Version with regression

rustc --version --verbose:

cargo 1.82.0 (8f40fc59f 2024-08-21)
release: 1.82.0
commit-hash: 8f40fc59fb0c8df91c97405785197f3c630304ea
commit-date: 2024-08-21
host: x86_64-unknown-linux-gnu
libgit2: 1.8.1 (sys:0.19.0 vendored)
libcurl: 8.9.0-DEV (sys:0.4.74+curl-8.9.0 vendored ssl:OpenSSL/1.1.1w)
ssl: OpenSSL 1.1.1w  11 Sep 2023
os: Manjaro 24.1.1 (Xahea) [64-bit]

@rustbot modify labels: +regression-from-stable-to-1.82 -regression-untriaged

Activity

added
C-bugCategory: This is a bug.
regression-untriagedUntriaged performance or correctness regression.
on Oct 23, 2024
added
I-prioritizeIssue: Indicates that prioritization has been requested for this issue.
needs-triageThis issue may need triage. Remove it if it has been sufficiently triaged.
on Oct 23, 2024
lqd

lqd commented on Oct 23, 2024

@lqd
Member

This is another regression from #126024

Nothing4You

Nothing4You commented on Oct 23, 2024

@Nothing4You

some more information:

1.81

$ rustup override set 1.81
info: override toolchain for '/path/to/lemmy' set to '1.81-aarch64-apple-darwin'
$ rustc --version --verbose
rustc 1.81.0 (eeb90cda1 2024-09-04)
binary: rustc
commit-hash: eeb90cda1969383f56a2637cbd3037bdf598841c
commit-date: 2024-09-04
host: aarch64-apple-darwin
release: 1.81.0
LLVM version: 18.1.7
$ rm -rf target && cargo build --timings
[…]
    Finished `dev` profile [unoptimized] target(s) in 2m 54s

1.82

$ rustup override set 1.82
info: override toolchain for '/path/to/lemmy' set to '1.82-aarch64-apple-darwin'
$ rustc --version --verbose
rustc 1.82.0 (f6e511eec 2024-10-15)
binary: rustc
commit-hash: f6e511eec7342f59a25f7c0534f1dbea00d01b14
commit-date: 2024-10-15
host: aarch64-apple-darwin
release: 1.82.0
LLVM version: 19.1.1
$ rm -rf target && cargo build --timings
[…]
    Finished `dev` profile [unoptimized] target(s) in 9m 58s

cargo-timings.zip

removed
needs-triageThis issue may need triage. Remove it if it has been sufficiently triaged.
on Oct 23, 2024
added
regression-from-stable-to-stablePerformance or correctness regression from one stable version to another.
and removed
regression-untriagedUntriaged performance or correctness regression.
on Oct 24, 2024
added a commit that references this issue on Nov 6, 2024

Auto merge of rust-lang#132625 - compiler-errors:cache-only-if-opaque…

41 remaining items

Loading
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

    C-bugCategory: This is a bug.I-compiletimeIssue: Problems and improvements with respect to compile times.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-stablePerformance or correctness regression from one stable version to another.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Participants

      @sunshowers@lqd@dessalines@Nutomic@weiznich

      Issue actions

        regression: crate compiles much slower with 1.82 · Issue #132064 · rust-lang/rust