summaryrefslogtreecommitdiffstats
path: root/src/H5B.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2004-06-16 18:57:18 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2004-06-16 18:57:18 (GMT)
commit65370b8417550b503ce1df7727edcac6f2657aba (patch)
tree5d1ba3ca953351efb0091afd202578f3fd0181ca /src/H5B.c
parenta7f0ce8fc56c55474f5a8efe80ba26eb8747e515 (diff)
downloadhdf5-65370b8417550b503ce1df7727edcac6f2657aba.zip
hdf5-65370b8417550b503ce1df7727edcac6f2657aba.tar.gz
hdf5-65370b8417550b503ce1df7727edcac6f2657aba.tar.bz2
[svn-r8697] Purpose:
Code optimizations Description: Eliminate memset() call in H5S_set_extent_simple(). Use malloc() instead of calloc in H5B<mumble>. Change global heap code to track heap objects that are in use in order to allocate new objects more quickly and also to avoid memset() and calloc() calls. Platforms tested: Solaris 2.7 (arabica) FreeBSD 4.10 (sleipnir) w/parallel Too minor to require h5committest
Diffstat (limited to 'src/H5B.c')
-rw-r--r--src/H5B.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5B.c b/src/H5B.c
index 4faef9a..9c52a61 100644
--- a/src/H5B.c
+++ b/src/H5B.c
@@ -247,7 +247,7 @@ H5B_create(H5F_t *f, hid_t dxpl_id, const H5B_class_t *type, void *udata,
bt->left = HADDR_UNDEF;
bt->right = HADDR_UNDEF;
bt->nchildren = 0;
- if (NULL==(bt->page=H5FL_BLK_CALLOC(page,size)) ||
+ if (NULL==(bt->page=H5FL_BLK_MALLOC(page,size)) ||
NULL==(bt->native=H5FL_BLK_MALLOC(native_block,total_native_keysize)) ||
NULL==(bt->child=H5FL_SEQ_MALLOC(haddr_t,(size_t)(2*H5F_KVALUE(f,type)))) ||
NULL==(bt->key=H5FL_SEQ_MALLOC(H5B_key_t,(size_t)(2*H5F_KVALUE(f,type)+1))))