[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Guile 100 Prob #4 TAR files

From: Mike Gran
Subject: Re: Guile 100 Prob #4 TAR files
Date: Sat, 4 May 2013 19:47:55 -0700 (PDT)

> From: Jez <address@hidden>

>I actually submitted a pull request for this challenge
> earlier today:

Great! You were the first entry to meet the spec.

> Not as fully-featured as Mark's, though. I just did what was
> spec'ed out, with the exception of moving the footer to the
> end of the archive rather than having it at the end of each file.

Yeah, sorry about that footer spec error.

I found two possible corrections
- you make an extra 512 byte block if a file ends exactly
  on a block boundary (like a zero byte file, for example)
- For files archived from the current directory, you
  explicitly add the "." path to the archive.  Most other
  tar programs don't do that.

Not that speed was the point of this exercise, but, in
creating an archive from 10000 6kB text files, this script was
about 10x slower than GNU tar, and slightly slower than
Mark's tar.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]