Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Is this correct?

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.


size = 0L
i = 1
while i < 11707:
    size = size + size + len("This is line #" + str(size) + "\n")
    i = i + 1


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.)

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List