Skip to content

Memory overhead #31

Open
Open
@academe-01

Description

Hello!

Could you please provide information on the memory overhead per stored item when using LRU in Go?

Additionally, I have a use case where the key is a [32]byte and the value is a pointer to a struct. Which of the following approaches would be faster:

1.	Using go-freelru to store the key and a pointer to the struct.
2.	Using go-freelru to store the key and an index (e.g., uint64) which references a separate map holding all values.

Thank you!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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