NVHTarGzip
NVHTarGzip copied to clipboard
UnTar file creation very slow with many small files.
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.