Skip to content

Huge amount of memory allocation #3

Closed
@mominul

Description

@mominul

Currently upodesh's Trie implementation uses a huge amount of heap allocation (around ~145MB) for only 3.8MB of words (159427 words in total). This is a huge overhead in terms of memory consumption.

Heaptrack Analysis

Image

Running the Heaptrack analysis

Enable Debug symbols in release mode in Cargo.toml:

[profile.release]
debug = true

Compile the example in release mode:

cargo run --release --example example -- ami

Run the example inside heaptrack:

heaptrack ./target/release/examples/example ami

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions