-
Notifications
You must be signed in to change notification settings - Fork 451
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
manifest: optimize sizeof FileMetadata #2047
Comments
We have marked this issue as stale because it has been inactive for |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The FileMetadata struct has grown to sizeof 344 bytes, which means 344MB with 1M files (which can happen for various reasons), and is not an insignificant amount of memory. There is of course additional cost of FileMetadata due to the InternalKey.UserKey byte slices, which is something discussed in #1741.
We can reduce the FileMetadata size to 216 bytes with some rearrangement and moving mostly empty sets of fields to structs with pointers in FileMetadata (see ** for the changes below)
Jira issue: PEBBLE-138
The text was updated successfully, but these errors were encountered: