summaryrefslogtreecommitdiffstats
path: root/src/H5HGpkg.h
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/H5HGpkg.h
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/H5HGpkg.h')
-rw-r--r--src/H5HGpkg.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/H5HGpkg.h b/src/H5HGpkg.h
index ee029c4..8eb56e6 100644
--- a/src/H5HGpkg.h
+++ b/src/H5HGpkg.h
@@ -81,6 +81,10 @@ struct H5HG_heap_t {
size_t size; /*total size of collection */
uint8_t *chunk; /*the collection, incl. header */
size_t nalloc; /*numb object slots allocated */
+ size_t next_idx; /* Object index to use next */
+ /* If this value is >65535 then all indices */
+ /* have been used at some time and the */
+ /* correct new index should be searched for */
H5HG_obj_t *obj; /*array of object descriptions */
};