-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Open
Labels
C-bugCategory: This is a bug.Category: This is a bug.I-slowIssue: Problems and improvements with respect to performance of generated code.Issue: Problems and improvements with respect to performance of generated code.NLL-performantWorking towards the "performance is good" goalWorking towards the "performance is good" goalNLL-poloniusIssues related for using Polonius in the borrow checkerIssues related for using Polonius in the borrow checkerT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
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
.
jaamesd
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.I-slowIssue: Problems and improvements with respect to performance of generated code.Issue: Problems and improvements with respect to performance of generated code.NLL-performantWorking towards the "performance is good" goalWorking towards the "performance is good" goalNLL-poloniusIssues related for using Polonius in the borrow checkerIssues related for using Polonius in the borrow checkerT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
alex commentedon Dec 29, 2024
AFAIK, polonius has changed its implementation strategy considerable in the last 4+ years. Should this be closed?
Neutron3529 commentedon Mar 6, 2025
Nope, I've found some similar things.