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

Why 24 bytes per record overhead? #7

Open
chrislusf opened this issue Oct 23, 2016 · 0 comments
Open

Why 24 bytes per record overhead? #7

chrislusf opened this issue Oct 23, 2016 · 0 comments

Comments

@chrislusf
Copy link

Low overhead: A database uses 2048 bytes, plus 24 bytes per record, plus the space for keys and data.

For my own calculation, for each record, it should be len(key), len(value), hash_value, entry_offset 4 numbers. Each is 4 bytes. So total 16 bytes overhead per record. Where the 24 bytes come from?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant