Skip to content

Published binaries are kinda' slow #3459

@lnicola

Description

@lnicola

The musl allocator is not one of the fastest ones out there. We should consider enabling jemalloc if possible.

$ target/release/rust-analyzer analysis-stats .                                                                                               Database loaded, 185 roots, 207.149744ms
Crates in this dir: 27
Total modules found: 391
Total declarations: 6479
Total functions: 4882
Item Collection: 12.928391044s, 0b allocated 0b resident
Total expressions: 134876                                                                                                               
Expressions of unknown type: 4420 (3%)
Expressions of partially unknown type: 4193 (3%)
Type mismatches: 271
Inference: 38.903396336s, 0b allocated 0b resident
Total: 51.83179408s, 0b allocated 0b resident

$ target/x86_64-unknown-linux-musl/release/rust-analyzer analysis-stats .                                                                                      Database loaded, 185 roots, 236.729051ms
Crates in this dir: 27
Total modules found: 391
Total declarations: 6479
Total functions: 4882
Item Collection: 14.239506998s, 0b allocated 0b resident
Total expressions: 134876                                                                                                               
Expressions of unknown type: 4438 (3%)
Expressions of partially unknown type: 4284 (3%)
Type mismatches: 271
Inference: 44.227304328s, 0b allocated 0b resident
Total: 58.466818431s, 0b allocated 0b resident

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions