summaryrefslogtreecommitdiffstats
path: root/src/H5AC.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5AC.c')
-rw-r--r--src/H5AC.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/H5AC.c b/src/H5AC.c
index 4801194..440dfd8 100644
--- a/src/H5AC.c
+++ b/src/H5AC.c
@@ -2403,6 +2403,11 @@ H5AC_cork(H5F_t *f, haddr_t obj_addr, unsigned action, hbool_t *corked)
HDassert(H5F_addr_defined(obj_addr));
HDassert(action == H5AC__SET_CORK || action == H5AC__UNCORK || action == H5AC__GET_CORKED);
+ /* Skip the search on "tag_list" when there are no "corked" objects.
+ * This is done to mitigate the slow down when closing objects.
+ * Re-visit this optimization when we optimize tag info management
+ * in the future.
+ */
if(action == H5AC__GET_CORKED) {
HDassert(corked);
if(H5C_get_num_objs_corked(f->shared->cache) == 0) {