Complete rewrite using `mmap` et al. Maybe in Rust of C++ idk