unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Mike Gran <spk121@yahoo.com>
To: Jez <jezreel@gmail.com>, Guile User <guile-user@gnu.org>
Subject: Re: Guile 100 Prob #4 TAR files
Date: Sat, 4 May 2013 19:47:55 -0700 (PDT)	[thread overview]
Message-ID: <1367722075.79198.YahooMailNeo@web120403.mail.ne1.yahoo.com> (raw)
In-Reply-To: <CABVpgLVKj16yfRtpjnD26oyzME8Us_CFtL3q4TkcT06aQnguPQ@mail.gmail.com>

> From: Jez <jezreel@gmail.com>


>I actually submitted a pull request for this challenge
> earlier today: https://github.com/spk121/guile100/pull/1/files

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.


-Mike




  reply	other threads:[~2013-05-05  2:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-02  5:37 Guile 100 Prob #4 TAR files Mike Gran
2013-05-04 23:24 ` Mark H Weaver
2013-05-04 23:44   ` Jez
2013-05-05  2:47     ` Mike Gran [this message]
2013-05-05 11:27       ` Jez
2013-05-05  2:47   ` Mike Gran

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1367722075.79198.YahooMailNeo@web120403.mail.ne1.yahoo.com \
    --to=spk121@yahoo.com \
    --cc=guile-user@gnu.org \
    --cc=jezreel@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).