-
Notifications
You must be signed in to change notification settings - Fork 1.7k
dart:io - is there a support for memory-mapped files? #35070
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
Comments
@a-siva ? |
At this point we don't have any plans for supporting memory-mapped files in dart:io, we can consider adding it at sometime depending on use case and requirements. |
@a-siva This would be useful when dealing with Isolate/FFI and zero copy. I could use this right now. |
Duplicate of #49810 |
@jwinarske you can implement memory mapped IO directly through FFI, no need for |
@mraleph the example references:
Where do I find mmap.dart? |
@jwinarske you can find this code here: https://gist.github.com/mraleph/d8ffb32cd419e08e15b8fc245dbbeff7#file-test-dart-L214 |
@mraleph Thank you! |
The link that was supposed to show an example of using FFI for mmap unfortunately linked to the main branch which currently uses the |
@renatoathaydes |
Is there any plan to support memory-mapped files in dart:io? It would be nice for server apps that want to keep an index on disk but still access it efficiently.
The text was updated successfully, but these errors were encountered: