parallel_processor/
lib.rs

1#![cfg_attr(debug_assertions, deny(warnings))]
2
3#[macro_use]
4pub extern crate mt_debug_counters;
5
6pub use mt_debug_counters::logging::enable_counters_logging;
7
8pub const DEFAULT_BINCODE_CONFIG: bincode::config::Configuration = bincode::config::standard();
9
10#[macro_use]
11pub mod memory_fs;
12pub mod buckets;
13pub mod debug_allocator;
14pub mod execution_manager;
15pub mod fast_smart_bucket_sort;
16#[macro_use]
17mod logging;
18pub mod memory_data_size;
19pub mod phase_times_monitor;
20pub mod utils;
21
22pub use logging::{set_logger_function, LogLevel};
23
24#[cfg(feature = "process-stats")]
25pub mod simple_process_stats;
26
27pub struct Utils {}
28
29impl Utils {
30    pub fn multiply_by(val: usize, mult: f64) -> usize {
31        ((val as f64) * mult) as usize
32    }
33}