@@ -66,12 +66,12 @@ struct external_memory_builder_single_phf {
6666 if (bitmap_taken_bytes + hashed_pilots_cache_bytes >= ram) {
6767 std::stringstream ss;
6868 ss << " not enough RAM available, the bitmap alone takes "
69- << static_cast <double >(bitmap_taken_bytes) / 1000000000 << " GB of space." ;
69+ << static_cast <double >(bitmap_taken_bytes) / 1'000'000'000 << " GB of space." ;
7070 throw std::runtime_error (ss.str ());
7171 }
7272
7373 if (config.verbose ) {
74- constexpr uint64_t GB = 1000000000 ;
74+ constexpr uint64_t GB = 1'000'000'000 ;
7575 uint64_t peak = num_keys * (sizeof (bucket_payload_pair) + sizeof (uint64_t )) +
7676 (num_keys + num_buckets) * sizeof (uint64_t );
7777 std::cout << " lambda (avg. bucket size) = " << config.lambda << std::endl;
@@ -100,7 +100,7 @@ struct external_memory_builder_single_phf {
100100 auto stop = clock_type::now ();
101101 if (config.verbose ) {
102102 std::cout << " == map+sort " << tfm.get_num_pairs_files ()
103- << " files(s) took: " << to_microseconds (stop - start) / 1000000
103+ << " files(s) took: " << to_microseconds (stop - start) / 1'000'000
104104 << " seconds" << std::endl;
105105 }
106106 start = clock_type::now ();
@@ -112,8 +112,9 @@ struct external_memory_builder_single_phf {
112112 tfm.remove_all_pairs_files ();
113113 stop = clock_type::now ();
114114 if (config.verbose ) {
115- std::cout << " == merge+check took: " << to_microseconds (stop - start) / 1000000
116- << " seconds" << std::endl;
115+ std::cout << " == merge+check took: "
116+ << to_microseconds (stop - start) / 1'000'000 << " seconds"
117+ << std::endl;
117118 std::cout << " == max bucket size = " << int (tfm.max_bucket_size ())
118119 << std::endl;
119120 }
0 commit comments