pub struct PackStats {
pub bytes: u64,
pub objects: u64,
pub copied: u64,
pub recompressed: u64,
}Expand description
The receipt for one GitServe::emit_pack.
copied and recompressed are the point — the P-001 applied-output
assertion. A byte count and a wall clock cannot tell a pack-copy from a
re-deflate: both produce a pack that passes git index-pack --strict and
git fsck, and the slow one is only visible as a number nobody was
recording. Both engines’ git-store-serve already emit exactly this
receipt, so a head-to-head stays a comparison rather than two anecdotes.
Fields§
§bytes: u64Bytes written to out, trailer included.
objects: u64Entries in the emitted pack.
copied: u64Entries whose stored payload went out byte for byte. Nothing was inflated and nothing was deflated for these.
recompressed: u64Entries whose payload was re-deflated. On a store that keeps pack entries verbatim this must be zero, and it is counted rather than assumed for exactly that reason.