-
Notifications
You must be signed in to change notification settings - Fork 162
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
Documentation / user guide #47
Comments
I have somewhat mixed feelings about this. More documentation is always good, but it's a fine line between documenting the crate and re-writing system man pages. For what it's worth, my opinion is that there are very few use cases which justify using file-backed memory maps. The trade-offs of |
I suppose optimal |
Is it safe to read from multiple threads? (std::fs::File e.g. is not thread-safe) |
It'd be nice if the docs could describe why some functions have been marked Thanks |
Seconding the concerns about documenting unsafety. It would be good to document what the caller needs to ensure to keep the program memory safe. |
+1 for better explanation of If I understand correctly creation of memory mapped buffer is unsafe primary due the ability to create shared mutable memory. But what about using only immutable |
I think |
In my opinion, as someone who knows very little about the subject of memory-mapped files, quite a bit more documentation would be useful. This mostly isn't specific to this crate, but having the documentation in one place (ideally within the module documentation) would make the topic easier to learn.
The text was updated successfully, but these errors were encountered: