Name: Anonymous 2008-03-12 0:08
I've been playing around with Git. I wrote a script that made 11706 commits to a repo with one file, which, each time, was appended with "This is line #{commit_number}". Out of curiosity, I wrote a script to calculate the total size of all versions of the file. Here's that script.
The result is a 3526-digit number. Is my script correct? If it is, then this is an amazing example of the efficiency of delta compression. (The total repo is ~7 MiB.)
size = 0L
i = 1
while i < 11707:
size = size + size + len("This is line #" + str(size) + "\n")
i = i + 1The result is a 3526-digit number. Is my script correct? If it is, then this is an amazing example of the efficiency of delta compression. (The total repo is ~7 MiB.)