Skip to content

Polonius performance problem on nix and libc #75858

Open
@joshtriplett

Description

@joshtriplett
Member

Version: rustc 1.47.0-nightly (663d2f5cd 2020-08-22)

To reproduce, create a new binary crate, add nix = "0.18.0" to the [dependencies] section, and then run cargo check on it, followed by RUSTFLAGS=-Zpolonius cargo check.

Without polonius, this took 5.56s for me. With polonius, this took 55.95s, an 11x increase in check time.

To avoid a moving target here, these builds used libc v0.2.76 and nix v0.18.0.

Activity

added
C-bugCategory: This is a bug.
NLL-poloniusIssues related for using Polonius in the borrow checker
NLL-performantWorking towards the "performance is good" goal
I-slowIssue: Problems and improvements with respect to performance of generated code.
on Aug 23, 2020
added
T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
on Aug 23, 2020
alex

alex commented on Dec 29, 2024

@alex
Member

AFAIK, polonius has changed its implementation strategy considerable in the last 4+ years. Should this be closed?

Neutron3529

Neutron3529 commented on Mar 6, 2025

@Neutron3529
Contributor

AFAIK, polonius has changed its implementation strategy considerable in the last 4+ years. Should this be closed?

Nope, I've found some similar things.

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-slowIssue: Problems and improvements with respect to performance of generated code.NLL-performantWorking towards the "performance is good" goalNLL-poloniusIssues related for using Polonius in the borrow checkerT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @alex@joshtriplett@jonas-schievink@Neutron3529

        Issue actions

          Polonius performance problem on nix and libc · Issue #75858 · rust-lang/rust