mmap instead of fopen

Use mmap instead of fopen in parse_file in order to gain ~15-20% performance
when parsing a file.