@@ -190,29 +190,6 @@ void executor::scan_buckets() const
190190
191191 // ------------------------------------------------------------------------
192192
193- filled = zero;
194- bucket = max_size_t ;
195- start = logger::now ();
196- while (!cancel_ && (++bucket < query_.point_buckets ()))
197- {
198- const auto top = query_.top_point (bucket);
199- if (!top.is_terminal ())
200- ++filled;
201-
202- if (is_zero (bucket % tx_frequency))
203- logger (format (" point" BN_READ_ROW) % bucket %
204- duration_cast<seconds>(logger::now () - start).count ());
205- }
206-
207- if (cancel_)
208- logger (BN_OPERATION_CANCELED);
209-
210- span = duration_cast<seconds>(logger::now () - start);
211- logger (format (" point" BN_READ_ROW) % (to_double (filled) / bucket) %
212- span.count ());
213-
214- // ------------------------------------------------------------------------
215-
216193 filled = zero;
217194 bucket = max_size_t ;
218195 start = logger::now ();
@@ -381,42 +358,6 @@ void executor::scan_collisions() const
381358 strong_tx.clear ();
382359 strong_tx.shrink_to_fit ();
383360
384- // point
385- // ------------------------------------------------------------------------
386-
387- index = max_size_t ;
388- start = logger::now ();
389- const auto point_buckets = query_.point_buckets ();
390- const auto point_records = query_.point_records ();
391- std_vector<size_t > point (point_buckets, empty);
392- while (!cancel_ && (++index < point_records))
393- {
394- const tx_link link{ possible_narrow_cast<tx_link::integer>(index) };
395- ++point.at (hash (query_.get_point_key (link.value )) % point_buckets);
396-
397- if (is_zero (index % tx_frequency))
398- logger (format (" point" BN_READ_ROW) % index %
399- duration_cast<seconds>(logger::now () - start).count ());
400- }
401-
402- if (cancel_)
403- logger (BN_OPERATION_CANCELED);
404-
405- // ........................................................................
406-
407- const auto point_count = count (point);
408- span = duration_cast<seconds>(logger::now () - start);
409- logger (format (" point: %1% in %2%s buckets %3% filled %4% rate %5%" ) %
410- index % span.count () % point_buckets % point_count %
411- (to_double (point_count) / point_buckets));
412-
413- for (const auto & entry: dump (point))
414- logger (format (" point: %1% frequency: %2%" ) %
415- entry.first % entry.second );
416-
417- point.clear ();
418- point.shrink_to_fit ();
419-
420361 // spend
421362 // ------------------------------------------------------------------------
422363
0 commit comments