Skip to main content

Module macros

Module macros 

Source
Expand description

Zero-overhead macros for compute task execution with optional validation

These macros provide size-aware execution strategies:

  • compute_small!: Direct inline execution for tasks <100μs
  • compute_medium!: Semaphore-guarded block_in_place for tasks 100μs-1ms
  • compute_large!: Rayon offload for tasks >1ms

When the compute-validation feature is enabled, these macros will time execution and emit warnings if tasks are misclassified.