fn default() -> Self {
        let threads = std::cmp::max(1, num_cpus::get());
        let scheduler_builder: Rc<SchedulerBuilder> = if threads <= 32 {
            Rc::new(|t| ExecutorScheduler::from(crossbeam_workstealing_pool::small_pool(t)))
        } else if threads <= 64 {
            Rc::new(|t| ExecutorScheduler::from(crossbeam_workstealing_pool::large_pool(t)))
        } else {
            Rc::new(|t| ExecutorScheduler::from(crossbeam_workstealing_pool::dyn_pool(t)))
        };
        KompactConfig {
            label: default_runtime_label(),
            throughput: 50,
            msg_priority: 0.5,
            threads,
            timer_builder: Rc::new(|| DefaultTimer::new_timer_component()),
            scheduler_builder,
            sc_builder: Rc::new(|sys, dead_prom, disp_prom| {
                Box::new(DefaultComponents::new(sys, dead_prom, disp_prom))
            }),
            root_logger: None,
            config_sources: Vec::new(),
        }
    }
/// Create a default Kompact config
///
/// The default config uses the default label, i.e. `"kompact-runtime-{}"` for some sequence number.
/// It sets the event/message throughput to 50, split evenly between events and messages.
/// It runs with one thread per cpu on an appropriately sized [`crossbeam_workstealing_pool`](crossbeam_workstealing_pool) implementation.
/// It uses all default components, without networking, with the default timer and default logger.
Create a default Kompact config
The default config uses the default label, i.e. `"kompact-runtime-{}"` for some sequence number.
It sets the event/message throughput to 50, split evenly between events and messages.
It runs with one thread per cpu on an appropriately sized [`crossbeam_workstealing_pool`](crossbeam_workstealing_pool) implementation.
It uses all default components, without networking, with the default timer and default logger.
Create a default Kompact config The default config uses the default label i . e . ` " kompact - runtime - {} " ` for some sequence number . It sets the event / message throughput to 50 split evenly between events and messages . It runs with one thread per cpu on an appropriately sized [ ` crossbeam_workstealing_pool ` ] ( crossbeam_workstealing_pool ) implementation . It uses all default components without networking with the default timer and default logger .
fn default() -> Self {
        let threads = std::cmp::max(1, num_cpus::get());
        let scheduler_builder: Rc<SchedulerBuilder> = if threads <= 32 {
            Rc::new(|t| ExecutorScheduler::from(crossbeam_workstealing_pool::small_pool(t)))
        } else if threads <= 64 {
            Rc::new(|t| ExecutorScheduler::from(crossbeam_workstealing_pool::large_pool(t)))
        } else {
            Rc::new(|t| ExecutorScheduler::from(crossbeam_workstealing_pool::dyn_pool(t)))
        };
        KompactConfig {
            label: default_runtime_label(),
            throughput: 50,
            msg_priority: 0.5,
            threads,
            timer_builder: Rc::new(|| DefaultTimer::new_timer_component()),
            scheduler_builder,
            sc_builder: Rc::new(|sys, dead_prom, disp_prom| {
                Box::new(DefaultComponents::new(sys, dead_prom, disp_prom))
            }),
            root_logger: None,
            config_sources: Vec::new(),
        }
    }
fn default ( ) -> Self { let threads = std :: cmp :: max ( 1 , num_cpus :: get ( ) ) ; let scheduler_builder : Rc < SchedulerBuilder > = if threads <= 32 { Rc :: new ( | t | ExecutorScheduler :: from ( crossbeam_workstealing_pool :: small_pool ( t ) ) ) } else if threads <= 64 { Rc :: new ( | t | ExecutorScheduler :: from ( crossbeam_workstealing_pool :: large_pool ( t ) ) ) } else { Rc :: new ( | t | ExecutorScheduler :: from ( crossbeam_workstealing_pool :: dyn_pool ( t ) ) ) } ; KompactConfig { label : default_runtime_label ( ) , throughput : 50 , msg_priority : 0.5 , threads , timer_builder : Rc :: new ( | | DefaultTimer :: new_timer_component ( ) ) , scheduler_builder , sc_builder : Rc :: new ( | sys , dead_prom , disp_prom | { Box :: new ( DefaultComponents :: new ( sys , dead_prom , disp_prom ) ) } ) , root_logger : None , config_sources : Vec :: new ( ) , } }
Create a default Kompact config
The default config uses the default label, i.e.
Create a default Kompact config The default config uses the default label i . e .