File Loading Question
-
This seems like a simple question but I just wanted to know peoples thougths on it. Is it better to load an entire Megabyte file all at once and parse it through memory, or is it better to parse through it a line at a time consuming minimal memory? I implemented the second method for large file downloads to an embedded system but I would love to hear what others thoughts are on this issue. Thanks, Brian
-
This seems like a simple question but I just wanted to know peoples thougths on it. Is it better to load an entire Megabyte file all at once and parse it through memory, or is it better to parse through it a line at a time consuming minimal memory? I implemented the second method for large file downloads to an embedded system but I would love to hear what others thoughts are on this issue. Thanks, Brian
You can use memory mapped file. Pavel Sonork 100.15206
-
This seems like a simple question but I just wanted to know peoples thougths on it. Is it better to load an entire Megabyte file all at once and parse it through memory, or is it better to parse through it a line at a time consuming minimal memory? I implemented the second method for large file downloads to an embedded system but I would love to hear what others thoughts are on this issue. Thanks, Brian