diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2000-07-28 00:06:35 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2000-07-28 00:06:35 (GMT) |
commit | 958d2ef179869643b6fe7b7c4439471a76565e20 (patch) | |
tree | 33e955b2ce1f1a06c55f7655720e337f6929e254 /src/H5FLprivate.h | |
parent | 55ea4084df14d187b308c35b7e0cc42d83e647ee (diff) | |
download | hdf5-958d2ef179869643b6fe7b7c4439471a76565e20.zip hdf5-958d2ef179869643b6fe7b7c4439471a76565e20.tar.gz hdf5-958d2ef179869643b6fe7b7c4439471a76565e20.tar.bz2 |
[svn-r2446] Some small performance improvements to various allocations and calculations.
Diffstat (limited to 'src/H5FLprivate.h')
-rw-r--r-- | src/H5FLprivate.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/H5FLprivate.h b/src/H5FLprivate.h index 56739e9..4a9d90d 100644 --- a/src/H5FLprivate.h +++ b/src/H5FLprivate.h @@ -45,6 +45,7 @@ typedef struct H5FL_head_t { uintn init; /* Whether the free list has been initialized */ uintn allocated; /* Number of blocks allocated */ uintn onlist; /* Number of blocks on free list */ + size_t list_mem; /* Amount of memory on free list */ const char *name; /* Name of the type */ size_t size; /* Size of the blocks in the list */ H5FL_node_t *list; /* List of free blocks */ @@ -54,7 +55,7 @@ typedef struct H5FL_head_t { * Macros for defining & using free lists for a type */ /* Declare a free list to manage objects of type 't' */ -#define H5FL_DEFINE(t) H5FL_head_t t##_free_list={0,0,0,#t,sizeof(t),NULL} +#define H5FL_DEFINE(t) H5FL_head_t t##_free_list={0,0,0,0,#t,sizeof(t),NULL} /* Reference a free list for type 't' defined in another file */ #define H5FL_EXTERN(t) extern H5FL_head_t t##_free_list |