Expand description
Zero-copy data loading utilities for efficient memory management
This module provides zero-copy tensor operations and memory management utilities for high-performance data processing pipelines. It enables efficient handling of large datasets without unnecessary memory allocations.
§Features
- Zero-copy tensors: Work directly with existing memory without copying
- Memory pools: Reuse allocated tensors to reduce allocation overhead
- Buffer management: Efficient buffer reuse in data pipelines
- Memory mapping: Direct access to file data without loading into memory
- Thread-safe operations: Concurrent access to shared memory pools
Structs§
- Buffer
Manager - Buffer manager for efficient buffer reuse in data pipelines
- Memory
Mapped Loader - Memory-mapped data loader for large datasets
- Tensor
Pool - Memory pool for reusing allocated tensors to avoid allocation/deallocation overhead
- Zero
Copy Tensor - Zero-copy tensor wrapper that avoids unnecessary memory allocation
Functions§
- create_
buffer_ manager - Convenience function to create a buffer manager
- create_
tensor_ pool - Convenience function to create a tensor pool
- zero_
copy_ from_ slice - Convenience function to create a zero-copy tensor from a slice
- zero_
copy_ from_ vec - Convenience function to create a zero-copy tensor from a vector