-
Notifications
You must be signed in to change notification settings - Fork 0
Reading files superfast
Akshay Dixit edited this page Apr 3, 2015
·
1 revision
##Introduction There are various variations and tricks with iterators that people use to read files using the C or C++ API. In snametize a lot of time( well practically almost all) is spent in doing I/O. As a result, we should be blazingly fast with our reads and writes. Thus, we perform a set of experiments to determine which method of reading files will be fastest.
##Methods
- Simple C API
- Simple C++ API
- Using
std::istreambuf_iterator
- Using
std::istreambuf_iterator
withstd::string.reserve
andstd::string.assign
- Using
std::stringstream
- Using
boost::iostreams::mapped_file