Re: cvs commit: src/usr.bin/tar Makefile bsdtar.1 bsdtar.c bsdtar.h bsdtar_platform.h matching.c read.c util.c write.c

From: Tim Kientzle <tim_at_kientzle.com>
Date: Tue, 13 Apr 2004 11:10:06 -0700
Tim Kientzle wrote:
> Brian F. Feldman wrote:
> 
>> ... it should be possible to get more speed out of bsdtar ...
> 
> Libarchive ... always writes fixed-size blocks, but you
> can at least set the block size ...

Since the library calls a client-provided write routine
for each block, you should also be able to set up
async writes and get some I/O overlap that way.
(In particular, this might speed up operations
like  tar -cf - foo | tar -xf - -C /mnt
to copy dir heirarchies across drives.)

Of course, libarchive reuses it's block buffer,
so you would have to copy the data out before
starting the I/O and returning.  Hmmmm....
There's no reason libarchive couldn't use
a round-robin list of block buffers
internally if that would help.

Tim
Received on Tue Apr 13 2004 - 09:10:23 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:50 UTC