From: Hongli L. <ho...@te...> - 2001-02-06 18:19:44
|
On Tue, 06 Feb 2001 18:23:49 Giovanni Corriga wrote: > Well, when handling compressed tar archives you have two options: > > > 1. handle them directly > 2. use a temporary file (first uncompress the archive, then open it). > > I thought that as long as .tar.gz archives are the most common > compressed tar archives, it would be more efficient to handle them > directly. Obviously, I'm not going to write separate code for e.g. > .tar.Z archives. I think using a temporary file is faster. Perhaps this is better: leave tarlib as it is (no Gzip support). GarpTgz will decompress the tgz to a temporary file, and keep it there until GarpTgz is destroyed. That would avoid re-decompression every time a function is called. What do you think? |