44#include " index_types.hpp"
55#include " util/util.hpp"
66
7- using ds2i ::logger;
8- using ds2i ::get_time_usecs;
9- using ds2i ::do_not_optimize_away;
7+ using pisa ::logger;
8+ using pisa ::get_time_usecs;
9+ using pisa ::do_not_optimize_away;
1010
1111template <typename IndexType, bool with_freqs>
1212void perftest (IndexType const & index, std::string const & type)
@@ -65,7 +65,7 @@ void perftest(IndexType const& index, std::string const& type)
6565 if (size < min_length) continue ;
6666
6767 skip_values.emplace_back (i, std::vector<uint64_t >());
68- for (size_t i = 0 ; i < std::min (ds2i ::ceil_div (size, skip),
68+ for (size_t i = 0 ; i < std::min (pisa ::ceil_div (size, skip),
6969 max_calls_per_list); ++i) {
7070 reader.move (i * skip);
7171 skip_values.back ().second .push_back (reader.docid ());
@@ -106,7 +106,7 @@ void perftest(const char* index_filename, std::string const& type)
106106 logger () << " Loading index from " << index_filename << std::endl;
107107 IndexType index;
108108 mio::mmap_source m (index_filename);
109- ds2i ::mapper::map (index, m, ds2i ::mapper::map_flags::warmup);
109+ pisa ::mapper::map (index, m, pisa ::mapper::map_flags::warmup);
110110
111111 perftest<IndexType, false >(index, type);
112112 perftest<IndexType, true >(index, type);
@@ -115,7 +115,7 @@ void perftest(const char* index_filename, std::string const& type)
115115
116116int main (int argc, const char ** argv) {
117117
118- using namespace ds2i ;
118+ using namespace pisa ;
119119
120120 if (argc != 3 ) {
121121 std::cerr << " Usage: " << argv[0 ]
0 commit comments