Module pool

Module pool 

Source
Expand description

Memory pool management for Dioxus Motion optimizations

This module provides pooling systems to reduce memory allocations in hot paths of the animation system, particularly for configuration objects and other frequently allocated structures.

Modules§

global
Global functions for accessing the thread-local config pool
integrator
Global functions for integrator pool management
resource_pools
Global functions for managing Motion resource pools

Structs§

ConfigHandle
A handle to a pooled AnimationConfig that automatically returns to pool when dropped
ConfigPool
A pool for reusing AnimationConfig instances to reduce allocations
GlobalIntegratorPools
Global integrator pool management using type-erased storage
MotionResourcePools
Global resource pool management for Motion optimizations Manages all pooled resources including configs, integrators, and closures
PoolConfig
Configuration for resource pools
PoolStats
Statistics about all resource pools
SpringIntegrator
Spring integrator with pre-allocated buffers for RK4 integration Eliminates temporary State struct allocations in hot paths
SpringIntegratorHandle
Handle to a pooled SpringIntegrator
SpringIntegratorPool
Pool for reusing SpringIntegrator instances