mixer-tools icon indicating copy to clipboard operation
mixer-tools copied to clipboard

Remove duplicate manifest file record metadata

Open jwakre opened this issue 5 years ago • 0 comments

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.

jwakre avatar Nov 07 '19 22:11 jwakre