From 176f59f0f4aaadf3c5fe8637b9478a627b43c076 Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Tue, 10 Oct 2006 14:41:37 -0500 Subject: [svn-r12738] Description: Tweak down some of the static array definitions for new & re-loaded object header data structures, to reduce memory use in common cases. Tested on: Linux/32 2.6 (chicago) --- src/H5Ocache.c | 2 +- src/H5Opkg.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/H5Ocache.c b/src/H5Ocache.c index 3ef502b..23f714a 100644 --- a/src/H5Ocache.c +++ b/src/H5Ocache.c @@ -209,7 +209,7 @@ H5O_load(H5F_t *f, hid_t dxpl_id, haddr_t addr, const void UNUSED * _udata1, UINT32DECODE(p, chunk_size); /* build the message array */ - oh->alloc_nmesgs = MAX(H5O_NMESGS, nmesgs); + oh->alloc_nmesgs = nmesgs; if (NULL==(oh->mesg=H5FL_SEQ_CALLOC(H5O_mesg_t,(size_t)oh->alloc_nmesgs))) HGOTO_ERROR (H5E_RESOURCE, H5E_NOSPACE, NULL, "memory allocation failed"); diff --git a/src/H5Opkg.h b/src/H5Opkg.h index 35fc5f9..56353ed 100644 --- a/src/H5Opkg.h +++ b/src/H5Opkg.h @@ -35,7 +35,7 @@ /* Object header macros */ #define H5O_NMESGS 32 /*initial number of messages */ -#define H5O_NCHUNKS 8 /*initial number of chunks */ +#define H5O_NCHUNKS 2 /*initial number of chunks */ /* Version of object header structure */ #define H5O_VERSION 1 -- cgit v0.12