Skip to content

UnTar file creation very slow with many small files. #13

Description

@idsky2

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions