RunMat Snapshot Creator
High-performance snapshot system for preloading the RunMat standard library. Inspired by V8's snapshot architecture, this provides:
- Zero-copy serialization with memory mapping
- Multi-tier compression with LZ4 and ZSTD
- Integrity validation with SHA-256 checksums
- Concurrent loading with lock-free data structures
- Progressive enhancement with fallback mechanisms
Architecture
┌─────────────────┐ ┌──────────────────┐ ┌─────────────────┐
│ Standard Lib │ -> │ Snapshot │ -> │ Runtime │
│ Components │ │ Generator │ │ Loader │
│ │ │ │ │ │
│ • Builtins │ │ • Serialization │ │ • Memory Map │
│ • HIR Cache │ │ • Compression │ │ • Validation │
│ • Bytecode │ │ • Validation │ │ • Integration │
│ • GC Presets │ │ • Optimization │ │ • Performance │
└─────────────────┘ └──────────────────┘ └─────────────────┘