ChunkedVec
Note: This is a learning project implementing a vector-like data structure with chunked storage.
ChunkedVec is a vector-like data structure that stores elements in fixed-size chunks. It provides a Vec-like interface while offering unique advantages in memory management.
Current Implementation Status
Implemented Features
- Basic constructors (
new,with_capacity,with_chunk_size) - Push operation (for
Default + Copytypes only) - Index-based access (
get,Index/IndexMuttraits) - Length and capacity queries
- Configurable chunk size (default: 64)
Planned Features (Not Yet Implemented)
- Full iterator support
- Non-Copy type support
- Chunk-level operations
- More advanced memory management
Features
- Chunk-based storage with configurable chunk size
- Standard vector-like interface for basic operations
- Efficient memory allocation during growth
- O(1) random access time complexity
Usage Example
use ChunkedVec;
Contributing
This is an open learning project. Contributions and suggestions are welcome!