Skip to content

Details about the memory usage of each map #11

@timothee-haudebourg

Description

@timothee-haudebourg

Hi,

It is said in the doc that

When a weak pointer expires, its mapping is lazily removed.

Could you give more details in the documentation about the conditions under which expired mappings are physically removed from the map, and what is the expected latency between the expiration and removal? A naive implementation I have in mind would only remove the binding when the key is fetched after it expired, and if the key is never fetched, then it will never be deleted, resulting in a memory leak.

In other words, do you guarantee that every expired binding will eventually be removed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions