Skip to content

implement get_size::GetSize for SmallVec, so we can know how much memory we're using? #331

Closed
@amandasaurus

Description

@amandasaurus

I have been using smallvec successfully, and it's been a great memory saver. I also use the get_size library to report how much (heap) memory my data structures use. This doesn't work for SmallVec's, or data stucutres which include them.

Is it possible to add support to GetSize to smallvec? Maybe behind a feature flag? get_size allows one to implement it for external types, do you have any tips on how I could implement GetSize for a SmallVec?

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