Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only store key once when keys are equal #20

Open
al8n opened this issue Oct 11, 2024 · 0 comments
Open

Only store key once when keys are equal #20

al8n opened this issue Oct 11, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@al8n
Copy link
Owner

al8n commented Oct 11, 2024

Example:

insert `k1 = "foo", v1 = "foo1"`, got pointer1

insert `k1 = "foo", v2 = "foo2"`, got pointer2

In the above example, for the second entry, we do not need to store k1 again, we can make the key pointer of the returned pointer2 points the same old k1 to save space.

@al8n al8n added the enhancement New feature or request label Oct 11, 2024
@al8n al8n self-assigned this Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant