首页 > TAG信息列表 > ObjPath

C++ 快速读取大文件

方法一、 clock_t start = clock(); ifstream fin(objpath,std::ios::binary); vector<char> buf(fin.seekg(0,std::ios::end).tellg()); fin.seekg(0,std::ios::beg).read(&buf[0],static_cast<std::streamsize>(buf.size())); fin.close(); clock_t end = cl