diff options
author | David Young <dyoung@hdfgroup.org> | 2020-02-26 22:24:42 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2020-02-26 22:24:42 (GMT) |
commit | 4b70e13e14a9fa13696fbcf2d8a9bb329db90c57 (patch) | |
tree | bf8ee8734ff070738e66757a69ca8f5a4026bc37 /src/H5FDvfd_swmr.c | |
parent | d859bc4ba7ff2336a5ef33d94a2ef617a202613b (diff) | |
download | hdf5-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.c | 3 |
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) { |