Skip to content

Measure the memory usage of HashMap better #6908

@jdm

Description

@jdm

Currently we estimate it at capacity() * (size_of::<K>() + size_of::<V>()). I briefly looked into duplicating the internals in mem.rs, but it was looked really complicated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-perf-bloatUnnecessary memory usage.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions