logical operations on large files binary data in C/C++

I have two binary files (order of tens of MB) and I want to or every bit of these files. And of course, I want it to be as efficient as possible. So I have two ways in mind to do that, but I still think (I kinda feel) that should be a more efficient way that I do not know of. Given file a and b .. what I want to do is a = a|b 1. Loading two files, parse them in to two huge std::bitsets and or them together 2. loading two files byte by byte and or them if a huge for loop... Is there any other way to do that?

以上就是logical operations on large files binary data in C/C++的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » CSS3 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准