Re: memory mapped tar file contents

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jean-Paul Calderone

    Re: memory mapped tar file contents

    On Wed, 12 Nov 2008 18:51:38 -0800 (PST), Chris Brooks <[email protected] ask.cawrote:
    >
    >Hi,
    >
    >I would like to read directly from a tar file into memory so I can
    >manipulate a file (quickly) and write its changes out to another file. I
    >thought I could do something like:
    If you mmap a tar file, then you'll get a bunch of tar formatted stuff. If
    you mmap a gzipped tar file, then you'll get a bunch of gzipped stuff. Are
    you sure that's what you want? From your code snippet, it looks more like
    you want the uncompressed file data from the archive. In this case, you
    cannot meaningfully use mmap to speed up your application. The data has
    to be uncompressed and interpreted before you can get the application data.

    Jean-Paul
Working...