I want to pose a seemingly simple question that i can t find the answer nowhere. Is there a FAST modern algorithm for file input and/or output that can be compiled with all standard compliant C++ compilers and works for all operating systems without the requirement of external libraries ?
- i have found that the fastest way is to use memory mapped files, but that won t do cause we want the same piece of code working on all platforms
- we can t use apis like Win32 API cause that will make it platform specific
- i don t want to use c, i want the algorithm to be just pure c++ code with stl if feasible, not some ugly c with intermixed asm hack/trick
- frameworks or external libraries that don t belong in standart c++ shouldn t be used like wxWidgets, Qt, MFC etc.
- The big empasis of this whole question is that the algorithm is as FAST as possible, something along the lines of the speed of doing it with memory mapped files, even faster would be great but i know that is not possible
Have you ever seen something so crazy been researched by anyone else except me ? Is such an algorithm even possible ?
感谢任何建议