Skip to main content

Module utils

Module utils 

Source
Expand description

utils.rs - Optimization and Utility Functions for horon-engine

§Utility functions for horon-engine

This module provides high-performance utility functions for the crate:

  • SIMD-optimized vector operations (delegates to gMath’s internal SIMD when available)
  • Hyperbolic geometry calculations for the Poincaré disk model
  • Performance monitoring tools for benchmarking and optimization
  • CPU feature detection for runtime selection of optimal algorithms

Structs§

CpuFeatures
CPU feature detection result.
PerformanceMonitor
Performance monitoring for HTT operations.
SimdOptimization
SIMD optimization module for vector operations.

Functions§

format_duration_ms
Formatted duration in milliseconds (display-boundary f64 usage).
format_duration_us
Formatted duration in microseconds.