18 template <
typename index_t>
21 std::filesystem::path index_file{arguments.
index_file};
22 index_file +=
"_" + std::to_string(part);
27 template <
typename index_t>
33 template <
typename index_t>
34 void load_index(index_t & index, std::filesystem::path
const & path,
double & index_io_time)
36 std::ifstream is{path, std::ios::binary};
37 cereal::BinaryInputArchive iarchive{is};
39 auto start = std::chrono::high_resolution_clock::now();
41 auto end = std::chrono::high_resolution_clock::now();
43 index_io_time += std::chrono::duration_cast<std::chrono::duration<double>>(end - start).count();
Definition: adjust_seed.hpp:13
void load_index(index_t &index, search_arguments const &arguments, size_t const part, double &index_io_time)
Definition: load_index.hpp:19
Definition: search_arguments.hpp:27
std::filesystem::path index_file
Definition: search_arguments.hpp:46