summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2006-10-10 19:41:37 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2006-10-10 19:41:37 (GMT)
commit176f59f0f4aaadf3c5fe8637b9478a627b43c076 (patch)
tree843b808166b800639adafe0f50c616cf6e2dc940 /src
parent14dcb6db33f88011c3499d439c53890ab09d1ba2 (diff)
downloadhdf5-176f59f0f4aaadf3c5fe8637b9478a627b43c076.zip
hdf5-176f59f0f4aaadf3c5fe8637b9478a627b43c076.tar.gz
hdf5-176f59f0f4aaadf3c5fe8637b9478a627b43c076.tar.bz2
[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)
Diffstat (limited to 'src')
-rw-r--r--src/H5Ocache.c2
-rw-r--r--src/H5Opkg.h2
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