Visitar URL original
Explain meaning of uncompressed size values by BenBE · Pull Request #49 · github/git-sizer · GitHub
The Wayback Machine - https://web.archive.org/web/20201023101932/https://github.com/github/git-sizer/pull/49
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

Explain meaning of uncompressed size values #49

Open
wants to merge 1 commit into
base: master
from

Conversation

@BenBE
Copy link

@BenBE BenBE commented Oct 1, 2018

This adds the explanation given in #35 (comment) by @mhagger to include some more details of what the provided size values for total size mean an what purpose they can be used for.

See also: Issue #35

This adds the explanation given in #35 (comment) by @mhagger to include some more details of what the provided size values for total size mean an what purpose they can be used for.

The "Biggest objects" section provides information about the biggest single objects of each type, anywhere in the history.

In the "History structure" section, "maximum history depth" is the longest chain of commits in the history, and "maximum tag depth" reports the longest chain of annotated tags that point at other annotated tags.

The "Biggest checkouts" section is about the sizes of commits as checked out into a working copy. "Maximum path depth" is the largest number of path components for files in the working copy, and "maximum path length" is the longest path in terms of bytes. "Total size of files" is the sum of all file sizes in the single biggest commit, including multiplicities if the same file appears multiple times.
The "Biggest checkouts" section is about the sizes of commits as checked out into a working copy. "Maximum path depth" is the largest number of path components for files in the working copy, and "maximum path length" is the longest path in terms of bytes. "Total size of files" is the sum of all file sizes in the single biggest commit, including multiplicities if the same file appears multiple times. The uncompressed size of trees and commits is a good indication of how expensive reachability traversals will be, including clones and fetches and `git gc`.

This comment has been minimized.

@mhagger

mhagger Oct 2, 2018 •
Member

The "The uncompressed size ..." sentence also belongs in the section about "Overall repository size". The total sum of these sizes indicates more about the time to traverse all of history, which isn't necessarily correlated with the time to traverse a single tree.

"Total size of files" is different. It is roughly the disk space needed to check out the biggest commit in the history. It is possible that this includes multiple copies of the same blob (at different paths). "Overall repository size", by contrast, never includes multiple copies of the same exact blob.

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

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.