docs.rs failed to build zipora-2.1.3
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
zipora-1.1.1
Zipora
High-performance Rust data structures and compression algorithms with memory safety guarantees.
Key Features
- High Performance: Zero-copy operations, SIMD optimizations (AVX2, AVX-512), cache-friendly layouts
- Memory Safety: Eliminates segfaults, buffer overflows, use-after-free bugs
- Secure Memory Management: Production-ready memory pools with thread safety and RAII
- Blob Storage: 8 specialized stores with trie-based indexing and compression
- Specialized Containers: 13+ containers with 40-90% memory/performance improvements
- Hash Maps: Golden ratio optimized, string-optimized, cache-optimized implementations
- Advanced Tries: LOUDS, Critical-Bit (BMI2), Patricia tries with rank/select
- Compression: PA-Zip, Huffman O0/O1/O2, FSE, rANS, ZSTD integration
- Five-Level Concurrency: Graduated control from single-thread to lock-free
- C FFI Support: Complete C API for migration from C++ (
--features ffi)
Quick Start
[]
= "2.1.3"
# With optional features
= { = "2.1.3", = ["lz4", "ffi"] }
# AVX-512 (nightly only)
= { = "2.1.3", = ["avx512"] }
Basic Usage
use *;
// High-performance vector
let mut vec = new;
vec.push.unwrap;
// Zero-copy strings with SIMD hashing
let s = from_string;
println!;
// Intelligent rank/select with automatic optimization
let mut bv = new;
for i in 0..1000
let adaptive_rs = new.unwrap;
let rank = adaptive_rs.rank1;
// Unified Trie - Strategy-based configuration
use ;
let mut trie = new;
trie.insert.unwrap;
assert!;
// String-specialized trie
let mut string_trie = with_config;
string_trie.insert.unwrap;
// Unified Hash Map - Strategy-based configuration
use ;
let mut map = new;
map.insert.unwrap;
// String-optimized configuration
let mut string_map = with_config;
string_map.insert.unwrap;
// Cache-optimized configuration
let mut cache_map = with_config;
cache_map.insert.unwrap;
// Blob storage with compression
let config = performance_optimized;
let mut builder = with_config.unwrap;
builder.add_record.unwrap;
let store = builder.finish.unwrap;
// LRU Page Cache
use ;
let cache_config = performance_optimized
.with_capacity;
let cache = new.unwrap;
// Entropy coding
let encoder = new.unwrap;
let compressed = encoder.encode.unwrap;
// String utilities
use ;
// Join strings efficiently
let joined = join_str;
assert_eq!;
// Hex encoding/decoding
let hex = hex_encode;
assert_eq!;
let bytes = hex_decode.unwrap;
assert_eq!;
// Word iteration
let word_list: = words.collect;
assert_eq!;
// Numeric string comparison
use Ordering;
assert_eq!;
Documentation
Core Components
- Containers - Specialized containers (FastVec, ValVec32, IntVec, LruMap, etc.)
- Hash Maps - ZiporaHashMap, GoldHashMap with strategy-based configuration
- Blob Storage - 8 blob store variants with trie indexing and compression
- Memory Management - SecureMemoryPool, MmapVec, five-level pools
Algorithms & Processing
- Algorithms - Radix sort, suffix arrays, set operations, cache-oblivious algorithms
- Compression - PA-Zip, Huffman, FSE, rANS, real-time compression
- String Processing - SIMD string operations, pattern matching
System Architecture
- Concurrency - Five-level concurrency, version-based synchronization
- Error Handling - Error classification, automatic recovery strategies
- Configuration - Rich configuration APIs, presets, validation
- SIMD Framework - 6-tier SIMD with AVX2/BMI2/POPCNT support
Integration
- I/O & Serialization - Stream processing, endian handling, varint encoding
- C FFI - C API for migration from C++
Performance Reports
- Performance vs C++ - Benchmark comparisons
- Porting Status - Feature parity status
Features
| Feature | Default | Description |
|---|---|---|
simd |
Yes | SIMD optimizations (AVX2, SSE4.2) |
mmap |
Yes | Memory-mapped file support |
zstd |
Yes | ZSTD compression |
serde |
Yes | Serialization support |
lz4 |
No | LZ4 compression |
ffi |
No | C FFI bindings |
avx512 |
No | AVX-512 (nightly only) |
Build & Test
# Build
# Test
# Benchmark
# Lint
Performance Targets
| Component | Target |
|---|---|
| Rank/Select | 0.3-0.4 Gops/s with BMI2 |
| Radix Sort | 4-8x vs comparison sorts |
| SIMD Memory | 4-12x bulk operations |
| Cache Hit | >95% with prefetching |
License
Business Source License 1.0 - See LICENSE for details.