struct

Hwaro::Core::Build::ParallelConfig

Inherits Struct < Value < Object

Configuration for parallel processing

Constructors

new(enabled : Bool = true, max_workers : Int32 = 0, wake_idle : Bool = false)
Source

Instance methods

calculate_workers(item_count : Int32) : Int32

Calculate actual worker count based on CPU and workload

Source
enabled
Source
enabled=(enabled : Bool)
Source
max_workers
Source
max_workers=(max_workers : Int32)
Source
wake_idle

Wake idle threads for the workers (see ParallelHelper.wake_workers). Only for CPU-bound work that prints nothing from its workers: its warnings and results are handled in item order afterwards.

Source
wake_idle=(wake_idle : Bool)

Wake idle threads for the workers (see ParallelHelper.wake_workers). Only for CPU-bound work that prints nothing from its workers: its warnings and results are handled in item order afterwards.

Source