I’m writing a latency-sensitive app which reads a text file upon initialisation. I have profiled and re-written all my algorithms such that 85% of my execution time is from the lines:
boost::interprocess::file_mapping file(Path, read_only);
boost::interprocess::mapped_region data(file, read_only);
I am writing this on windows- is there any faster way to map a file into memory? Portability is not a concern.
You could just use the native functions of Win32, but I think you won’t save alot, because boost will not add alot of overhead: