-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
(Do not merge) Data serialization #3275
(Do not merge) Data serialization #3275
Conversation
Different file system usage across the project is marked in the current PR - hopefully this can be useful as a guide as to where to start shifting out code. I started charting what kind of data types where being read / written, but half way I gave up and resorted to merely placing TODO comments where data access was used. I think at least the preliminary findings already indicate what type of data we're dealing with. Knowing what data types we're dealing with (and even going further, normalizing data types) should prove useful for if we're opting for a data serialization technique which is using schemas. This will prove to be a real challenge, as there's a lot of slightly different types around. The TL;DR is: there's many types around and they're all some vector of structs, int32s and the likes.
|
@duizendnegen hi! I'd like to help you on this. I've started profiling the direct ifstream and ofstream usages. Will post them here in a bit. |
Hi @duizendnegen! This is currently where we're at: @danpat wrote a simple FileReader. So the next step is to convert all the reads and writes to use this FileReader. This is happening here: #3321 The FileReader is not complete and will need to be modified to meet all goals. |
I think this branch can be closed. I believe the next steps are to refactor the the FileReader and FileWriter classes. |
Absolutely - next steps are to convert all I'll try and see whether I have some time to get at that in the coming weeks. |
Issue
This PR addresses #2242. I/O usage and enabling cross-platform data (de)serialization
Tasklist
ifstream
/ofstream
/fstream
with internal binary-read/writeFile
systemRelevant documents