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

Remove duplicate manifest file record metadata #641

Open
jwakre opened this issue Nov 7, 2019 · 0 comments
Open

Remove duplicate manifest file record metadata #641

jwakre opened this issue Nov 7, 2019 · 0 comments

Comments

@jwakre
Copy link

jwakre commented Nov 7, 2019

When a file is referenced in multiple manifests, multiple identical copies of the file's metadata will exist (hash, name, stat() info). The memory usage could be reduced by storing only one copy of a file's metadata and referencing it multiple times.

The File struct in files.go contains both file and manifest metadata. By separating the file and manifest metadata into 2 structs, the file metadata collected once and referenced multiple times.

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

No branches or pull requests

1 participant