Skip to content

Incorrect accounting in Interner::estimated_memory_size #9744

@mzabaluev

Description

@mzabaluev

Describe the bug
In parquet, the code calculating the allocated memory size for util::Interner is wrong:

self.dedup.capacity() + std::mem::size_of::<S::Key>()

The capacity should be multiplied to the item size, but even better, HashTable::allocation_size method is available from the hashbrown library.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions