By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,089 Members | 2,432 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,089 IT Pros & Developers. It's quick & easy.

Re: memory mapped tar file contents

P: n/a

Jean-Paul Calderone wrote:
If you mmap a tar file, then you'll get a bunch of tar formatted stuff.
you mmap a gzipped tar file, then you'll get a bunch of gzipped stuff.
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
Actually, I want the contents of the tar uncompressed and untarred. So, for
example, I might be working with image data that has to go through several
transformations. I essentially want to pull the image out of the gz'ed tar
and into memory so I can work on it (as a file) and later write the changed
contents to somewhere else. But I don't really want to uncompress/untar and
save the file to disk and then work on it, I want to load it right into
memory. mmap seemed to be the right idea here...

Thanks for the reply,

View this message in context:
Sent from the Python - python-list mailing list archive at

Nov 13 '08 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.