]> wimlib.net Git - wimlib/commitdiff
blob_table: decrease initial blob table size
authorEric Biggers <ebiggers3@gmail.com>
Mon, 18 Jan 2016 06:01:26 +0000 (00:01 -0600)
committerEric Biggers <ebiggers3@gmail.com>
Fri, 22 Jan 2016 02:45:33 +0000 (20:45 -0600)
src/wim.c

index b5827171ba91e139d9f7a5c83cc756d8b08041c0..43b25aca950d7e1aecac523de7fc73399d0274a0 100644 (file)
--- a/src/wim.c
+++ b/src/wim.c
@@ -177,7 +177,7 @@ wimlib_create_new_wim(enum wimlib_compression_type ctype, WIMStruct **wim_ret)
                return WIMLIB_ERR_NOMEM;
 
        wim->xml_info = xml_new_info_struct();
-       wim->blob_table = new_blob_table(9001);
+       wim->blob_table = new_blob_table(64);
        if (!wim->xml_info || !wim->blob_table) {
                wimlib_free(wim);
                return WIMLIB_ERR_NOMEM;
@@ -729,7 +729,7 @@ begin_read(WIMStruct *wim, const void *wim_filename_or_fd, int open_flags)
        }
 
        if (open_flags & WIMLIB_OPEN_FLAG_FROM_PIPE) {
-               wim->blob_table = new_blob_table(9001);
+               wim->blob_table = new_blob_table(64);
                if (!wim->blob_table)
                        return WIMLIB_ERR_NOMEM;
        } else {