diff options
author | Vailin Choi <vchoi@jam.ad.hdfgroup.org> | 2019-02-06 00:13:11 (GMT) |
---|---|---|
committer | Vailin Choi <vchoi@jam.ad.hdfgroup.org> | 2019-02-06 00:13:11 (GMT) |
commit | 7d124cb7961ad0089aa6a18e1c2e08e351d8ba86 (patch) | |
tree | ad15291f07d0d102b95940e936213a659b5eda19 /src/H5AC.c | |
parent | e272e64e7492a934c456f652ce023a8952e727b3 (diff) | |
download | hdf5-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.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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) { |