Smaller footprint on JMA's with a single file

This commit is contained in:
n-a-c-h
2004-11-21 15:03:19 +00:00
parent 896a46bd2c
commit b672e0a75f

View File

@@ -362,6 +362,13 @@ namespace JMA
throw(JMA_FILE_NOT_FOUND);
}
//If the JMA only contains one file, we can skip a lot of overhead
if (files.size() == 1)
{
get_all_files(buffer);
return;
}
if (chunk_size) //we are using non-solid archive..
{
unsigned int chunks_to_skip = size_to_skip / chunk_size;