summaryrefslogtreecommitdiffstats
path: root/src/H5F.c
diff options
context:
space:
mode:
authorJohn Mainzer <mainzer@hdfgroup.org>2004-08-05 18:13:49 (GMT)
committerJohn Mainzer <mainzer@hdfgroup.org>2004-08-05 18:13:49 (GMT)
commit8265779dc0cf1612f0d19b22956c30e9c851826c (patch)
treedb00fea189bb86fc83f4cde792a03f60bbf2ab5d /src/H5F.c
parent19ecb5486a742fc622d3ec2591778ab4a6b1b6ab (diff)
downloadhdf5-8265779dc0cf1612f0d19b22956c30e9c851826c.zip
hdf5-8265779dc0cf1612f0d19b22956c30e9c851826c.tar.gz
hdf5-8265779dc0cf1612f0d19b22956c30e9c851826c.tar.bz2
[svn-r9022] Purpose: Optimization of the cache code in H5C.
Description: Cache was running too slowly. Solution: Added a hash table for indexing. Retained the tree, but only for dirty entries. As we need to flush dirty entries in increasing address order, this is sufficient. Updated statistics collection code for the above. Converted a number of local functions into macros to avoid the function call overhead. Added code to disable the clean and dirty LRU lists in serial mode. Updated test code to account for the above changes. Platforms tested: h5committested + serial, parallel, and fp on Eirene. Misc. update:
Diffstat (limited to 'src/H5F.c')
-rw-r--r--src/H5F.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5F.c b/src/H5F.c
index 6aac8d1..b181357 100644
--- a/src/H5F.c
+++ b/src/H5F.c
@@ -3277,9 +3277,9 @@ H5F_close(H5F_t *f)
/* Only flush at this point if the file will be closed */
assert(closing);
/* Dump debugging info */
-#if H5C_COLLECT_CACHE_STATS
+#if H5AC_DUMP_STATS_ON_CLOSE
H5AC_stats(f);
-#endif /* H5AC_COLLECT_CACHE_STATS */
+#endif /* H5AC_DUMP_STATS_ON_CLOSE */
/* Only try to flush the file if it was opened with write access */
if(f->intent&H5F_ACC_RDWR) {