-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use memory mapped files access #1781
base: master
Are you sure you want to change the base?
Changes from 2 commits
e687a27
0b737db
59266c4
044c9f8
8766d1f
5a59485
9a22f3e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -133,9 +133,8 @@ bool CFileHandler::TryReadFromRawFS(const string& fileName) | |
} | ||
|
||
return true; | ||
#else | ||
return false; | ||
#endif | ||
return false; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The non-TOOLS path will have two unconditional |
||
} | ||
|
||
|
||
|
@@ -152,9 +151,8 @@ bool CFileHandler::TryReadFromVFS(const string& fileName, int section) | |
fileSize = fileBuffer.size(); | ||
return true; | ||
} | ||
#else | ||
return false; | ||
#endif | ||
return false; | ||
} | ||
|
||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
#include <vector> | ||
#include <string> | ||
#include <fstream> | ||
#include <memory> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Shouldn't this be added to some .cpp file(s) instead? Looks like no new code was added below so probably doesn't need to be in the header (gets applies everywhere the .h is included even if not all .cpp files need it) |
||
#include <span> | ||
#include <cinttypes> | ||
#include <mio/mmap.hpp> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps this could be
static
to the function instead of class member?