summaryrefslogtreecommitdiffstats
path: root/src/H5AC.c
diff options
context:
space:
mode:
authorVailin Choi <vchoi@jam.ad.hdfgroup.org>2019-02-06 00:13:11 (GMT)
committerVailin Choi <vchoi@jam.ad.hdfgroup.org>2019-02-06 00:13:11 (GMT)
commit7d124cb7961ad0089aa6a18e1c2e08e351d8ba86 (patch)
treead15291f07d0d102b95940e936213a659b5eda19 /src/H5AC.c
parente272e64e7492a934c456f652ce023a8952e727b3 (diff)
downloadhdf5-7d124cb7961ad0089aa6a18e1c2e08e351d8ba86.zip
hdf5-7d124cb7961ad0089aa6a18e1c2e08e351d8ba86.tar.gz
hdf5-7d124cb7961ad0089aa6a18e1c2e08e351d8ba86.tar.bz2
Modification based on feedback from pull request.
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) {