Skip to content

Commit

Permalink
load subindexes from disk
Browse files Browse the repository at this point in the history
  • Loading branch information
ekg committed Oct 12, 2024
1 parent f11f911 commit abda8f3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/map/include/computeMap.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,13 @@ namespace skch
}

// Build index for the current subset
refSketch = new skch::Sketch(param, *idManager, target_subset);
if (!param.indexFilename.empty() && !param.create_index_only) {
// load index from file
std::string indexFilename = param.indexFilename.string() + "." + std::to_string(subset_count);
refSketch = new skch::Sketch(param, *idManager, target_subset, indexFilename);
} else {
refSketch = new skch::Sketch(param, *idManager, target_subset);
}

if (param.create_index_only) {
// Save the index to a file
Expand Down

0 comments on commit abda8f3

Please sign in to comment.