Skip to content

Polonius performance problem on nix and libc #75858

Open
@joshtriplett

Description

@joshtriplett

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.

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

    Issue actions