@@ -117,7 +117,7 @@ std::tuple<std::string, std::optional<Roaring>, std::optional<Roaring>> itemsjs:
117
117
}
118
118
119
119
elapsed = std::chrono::high_resolution_clock::now () - start;
120
- std::cout << " load filters indexes time: " << elapsed.count () / 1000000 << std::endl;
120
+ // std::cout << "load filters indexes time: " << elapsed.count() / 1000000<< std::endl;
121
121
122
122
start = std::chrono::high_resolution_clock::now ();
123
123
@@ -153,7 +153,7 @@ std::tuple<std::string, std::optional<Roaring>, std::optional<Roaring>> itemsjs:
153
153
}
154
154
155
155
elapsed = std::chrono::high_resolution_clock::now () - start;
156
- std::cout << " combination time: " << elapsed.count () / 1000000 << std::endl;
156
+ // std::cout << "combination time: " << elapsed.count() / 1000000<< std::endl;
157
157
158
158
// cross combination with query ids
159
159
if (query_ids) {
@@ -243,8 +243,8 @@ std::tuple<std::string, std::optional<Roaring>, std::optional<Roaring>> itemsjs:
243
243
}
244
244
245
245
elapsed = std::chrono::high_resolution_clock::now () - start;
246
- std::cout << " cursor facets search time: " << elapsed.count () / 1000000 << std::endl;
247
- std::cout << " facets crossed times: " << i << std::endl;
246
+ // std::cout << "cursor facets search time: " << elapsed.count() / 1000000<< std::endl;
247
+ // std::cout << "facets crossed times: " << i << std::endl;
248
248
249
249
// probably not needed because it's auto destroyed after going out of scope
250
250
cursor.close ();
@@ -739,7 +739,7 @@ std::string itemsjs::index(const char *&index_path, string json_path, const stri
739
739
}
740
740
741
741
auto elapsed = std::chrono::high_resolution_clock::now () - start;
742
- std::cout << " parse time: " << elapsed.count () / 1000000 << std::endl;
742
+ // std::cout << "parse time: " << elapsed.count() / 1000000<< std::endl;
743
743
744
744
745
745
auto wtxn = lmdb::txn::begin (env);
@@ -809,13 +809,13 @@ std::string itemsjs::index(const char *&index_path, string json_path, const stri
809
809
db_put_roaring (dbi, wtxn, " ids" , ids);
810
810
811
811
elapsed = std::chrono::high_resolution_clock::now () - start;
812
- std::cout << " items put time: " << elapsed.count () / 1000000 << std::endl;
812
+ // std::cout << "items put time: " << elapsed.count() / 1000000<< std::endl;
813
813
814
814
start = std::chrono::high_resolution_clock::now ();
815
815
wtxn.commit ();
816
816
817
817
elapsed = std::chrono::high_resolution_clock::now () - start;
818
- std::cout << " items put commit time: " << elapsed.count () / 1000000 << std::endl;
818
+ // std::cout << "items put commit time: " << elapsed.count() / 1000000<< std::endl;
819
819
820
820
// std::cout << "start indexing facets: " << std::endl;
821
821
start = std::chrono::high_resolution_clock::now ();
@@ -865,7 +865,7 @@ std::string itemsjs::index(const char *&index_path, string json_path, const stri
865
865
}
866
866
867
867
elapsed = std::chrono::high_resolution_clock::now () - start;
868
- std::cout << " roaring facets time: " << elapsed.count () / 1000000 << std::endl;
868
+ // std::cout << "roaring facets time: " << elapsed.count() / 1000000 << std::endl;
869
869
870
870
871
871
wtxn = lmdb::txn::begin (env);
@@ -896,13 +896,13 @@ std::string itemsjs::index(const char *&index_path, string json_path, const stri
896
896
}
897
897
898
898
elapsed = std::chrono::high_resolution_clock::now () - start;
899
- std::cout << " facets put time: " << elapsed.count () / 1000000 << std::endl;
899
+ // std::cout << "facets put time: " << elapsed.count() / 1000000<< std::endl;
900
900
901
901
start = std::chrono::high_resolution_clock::now ();
902
902
wtxn.commit ();
903
903
904
904
elapsed = std::chrono::high_resolution_clock::now () - start;
905
- std::cout << " facets commit time: " << elapsed.count () / 1000000 << std::endl;
905
+ // std::cout << "facets commit time: " << elapsed.count() / 1000000<< std::endl;
906
906
907
907
908
908
start = std::chrono::high_resolution_clock::now ();
@@ -925,12 +925,12 @@ std::string itemsjs::index(const char *&index_path, string json_path, const stri
925
925
}
926
926
927
927
elapsed = std::chrono::high_resolution_clock::now () - start;
928
- std::cout << " roaring full text time: " << elapsed.count () / 1000000 << std::endl;
928
+ // std::cout << "roaring full text time: " << elapsed.count() / 1000000 << std::endl;
929
929
930
930
wtxn = lmdb::txn::begin (env);
931
931
auto dbi_terms = lmdb::dbi::open (wtxn, " terms" , MDB_CREATE);
932
932
933
- cout << " start updating " << search_roar.size () << " terms elements" << endl;
933
+ // cout << "start updating " << search_roar.size() << " terms elements" << endl;
934
934
935
935
start = std::chrono::high_resolution_clock::now ();
936
936
// i = 1;
@@ -962,13 +962,13 @@ std::string itemsjs::index(const char *&index_path, string json_path, const stri
962
962
}
963
963
964
964
elapsed = std::chrono::high_resolution_clock::now () - start;
965
- std::cout << " search terms put time: " << elapsed.count () / 1000000 << std::endl;
965
+ // std::cout << "search terms put time: " << elapsed.count() / 1000000<< std::endl;
966
966
967
967
start = std::chrono::high_resolution_clock::now ();
968
968
wtxn.commit ();
969
969
970
970
elapsed = std::chrono::high_resolution_clock::now () - start;
971
- std::cout << " search terms commit time: " << elapsed.count () / 1000000 << std::endl;
971
+ // std::cout << "search terms commit time: " << elapsed.count() / 1000000<< std::endl;
972
972
973
973
974
974
// global variable
@@ -978,7 +978,7 @@ std::string itemsjs::index(const char *&index_path, string json_path, const stri
978
978
env.close ();
979
979
980
980
auto elapsed_all = std::chrono::high_resolution_clock::now () - start_all;
981
- std::cout << " time index whole block: " << elapsed_all.count () / 1000000 << std::endl;
981
+ // std::cout << "time index whole block: " << elapsed_all.count() / 1000000<< std::endl;
982
982
983
983
return " index" ;
984
984
@@ -1239,7 +1239,7 @@ Napi::String itemsjs::IndexWrapped(const Napi::CallbackInfo& info) {
1239
1239
append = false ;
1240
1240
}
1241
1241
1242
- cout << " append " << append << endl;
1242
+ // cout << "append " << append << endl;
1243
1243
1244
1244
string json_string;
1245
1245
string json_path;
0 commit comments