summaryrefslogtreecommitdiffstats
path: root/src/H5FDvfd_swmr.c
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2020-02-26 22:24:42 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-02-26 22:24:42 (GMT)
commit4b70e13e14a9fa13696fbcf2d8a9bb329db90c57 (patch)
treebf8ee8734ff070738e66757a69ca8f5a4026bc37 /src/H5FDvfd_swmr.c
parentd859bc4ba7ff2336a5ef33d94a2ef617a202613b (diff)
downloadhdf5-4b70e13e14a9fa13696fbcf2d8a9bb329db90c57.zip
hdf5-4b70e13e14a9fa13696fbcf2d8a9bb329db90c57.tar.gz
hdf5-4b70e13e14a9fa13696fbcf2d8a9bb329db90c57.tar.bz2
Where n is the number of page-table/shadow-index entries, avoid spending O(n^2)
time in H5PB_dest(). While we're in H5PB_dest(), mark deleted shadow-index entries as "garbage" and skip the O(n) shadow index-entries copy. Rename shadow index-entry member `moved_to_hdf5_file` to `moved_to_lower_file` while I'm in here---NFCI.
Diffstat (limited to 'src/H5FDvfd_swmr.c')
-rw-r--r--src/H5FDvfd_swmr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/H5FDvfd_swmr.c b/src/H5FDvfd_swmr.c
index 8ed760b..008db8e 100644
--- a/src/H5FDvfd_swmr.c
+++ b/src/H5FDvfd_swmr.c
@@ -690,7 +690,8 @@ H5FD_vfd_swmr_read(H5FD_t *_file, H5FD_mem_t type,
HDfprintf(stderr, "vfd swmr read index num_entries = %d\n", num_entries);
#endif /* JRM */
- entry = vfd_swmr_pageno_to_mdf_idx_entry(index, num_entries, target_page);
+ entry = vfd_swmr_pageno_to_mdf_idx_entry(index, num_entries, target_page,
+ false);
#if 0 /* JRM */
if (entry != NULL) {