Improve moss-format storage format for efficiency (IndexPayload and LayoutPayload)
-
Optimise IndexPayload - remove useless fields -
8/10 bytes key for size with 6/8 bytes padding -
followed by binary 16 bytes hex
-
-
Optimise LayoutPayload -
Index hash from IndexPayload -
Combine multiple fields per below
-
we could have switching behaviour dependant on the file *type&
lets call this "index"
replacing "tag" "sourceLength" and "targetLength"
if its a regular file, the uint32_t will have the index of the hash asset in the index payload
if its a node, it'll contain the mknod() uint32_t thing
and if its a symlink, the length of the source string
so 5 bytes 0 padding per record
Edited by Peter O'Connor