Skip to content

Crate with large static map in external crate fails to compile #40355

Closed
@urschrei

Description

@urschrei

Possibly related: #36799
When attempting to compile https://github.com/urschrei/lonlat_bng using cargo test or cargo build --release on OS X using beta (5276ba7) or nightly (b1e3176), the compilation step doesn't complete (or at least, it hadn't after around 11 hours). It also times out on Linux Nightly and Beta, using Travis.

On current OS X Stable (021bd29), it compiles as expected within ~95s locally, and on Linux Stable, using Travis, although rustdoc for the external crate fails with an OOM error on Linux.

This is probably due to the size of the static map in the external crate (https://github.com/urschrei/ostn15_phf), which is around 40.9mb.

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-slowIssue: Problems and improvements with respect to performance of generated code.P-highHigh priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions