pub fn read_all_frames(path: &Path) -> Result<Vec<ConFrame>, Box<dyn Error>>Expand description
Reads all frames from a file.
For files smaller than 64 KiB, uses a simple read_to_string to avoid
the fixed overhead of mmap (VMA creation, page fault, munmap). For larger
trajectory files, uses memory-mapped I/O to let the OS page cache handle
the data.