Use mmap to read from the pathlist file for performance.