-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
MMAP streaming of flatbuffer to avoid loading complete buffer in memory #4682
Comments
|
I tried using boost::memoryMap and it worked fine for reading buffer. I don't think I can add more memory to the pool contiguously as the binary requirement grows. Is there any suggestion on what could be the best to reserve by allocator for mmap? Some heuristic? I am also doubtful about use of mmap in general on iOS. iOS doesn't Purge unused pages, and for a full file read kind of scenario I think mmap will cause a crash rather than benefiting by incremental memory read. Any suggestions on using mmap to read fb on iOS? |
No, how much to allocate depends entirely on your use case. You'll need to pick something that is always bigger than any data you expect to write. I have no experience with mmap on iOS. |
This issue has been automatically marked as stale because it has not had activity for 1 year. It will be automatically closed if no further activity occurs. To keep it open, simply post a new comment. Maintainers will re-open on new activity. Thank you for your contributions. |
flatbuffer documentation mentions that a flatbuffer could be read in streamed manner for memory efficiency.
The text was updated successfully, but these errors were encountered: