NVHTarGzip icon indicating copy to clipboard operation
NVHTarGzip copied to clipboard

UnTar file creation very slow with many small files.

Open idsky2 opened this issue 9 years ago • 0 comments

I noticed that UnTarring in NVHTarGzip was about half the speed of another project (DCTar) with a 100MB tar file containing 30000 small files.

I changed line 304 of NVHTarFile.m from

created = [[NSFileManager defaultManager] createFileAtPath:path contents:nil attributes:nil];

to

created = [[NSData data] writeToFile:path atomically:NO];

and the total time taken dropped from 4.5 minutes to 2.3 minutes on an iPhone 6. This is the method DCTar used.

idsky2 avatar Nov 13 '15 03:11 idsky2