summaryrefslogtreecommitdiffstats
path: root/src/H5B.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2004-06-16 18:56:52 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2004-06-16 18:56:52 (GMT)
commit32336040a288858b1775817ea8c0b5d0bfc23517 (patch)
tree50f92ab448a0c71acf2d2594cbfc21b65f0a3d59 /src/H5B.c
parent2b81894af7cad966189d2b1303d3814f33f1e196 (diff)
downloadhdf5-32336040a288858b1775817ea8c0b5d0bfc23517.zip
hdf5-32336040a288858b1775817ea8c0b5d0bfc23517.tar.gz
hdf5-32336040a288858b1775817ea8c0b5d0bfc23517.tar.bz2
[svn-r8696] 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 dff894d..5f7735b 100644
--- a/src/H5B.c
+++ b/src/H5B.c
@@ -249,7 +249,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))))