pub fn read_all_frames(path: &Path) -> Result<Vec<ConFrame>, Box<dyn Error>>Expand description
Reads all frames from a file using memory-mapped I/O.
This avoids the read_to_string allocation for large trajectory files by
letting the OS page cache handle the data. The mmap is read-only and the
file contents are validated as UTF-8 before parsing.