-
-
Notifications
You must be signed in to change notification settings - Fork 730
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
Added support for madvise #2036
Conversation
60eccca
to
7750494
Compare
7750494
to
71e6738
Compare
Cargo.toml
Outdated
@@ -19,6 +19,7 @@ base64 = "0.21.0" | |||
byteorder = "1.4.3" | |||
crc32fast = "1.3.2" | |||
once_cell = "1.10.0" | |||
madvise = { version="0.1", optional= true } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that memmap2
has integrated support for madvise(2)
: https://docs.rs/memmap2/latest/memmap2/struct.Mmap.html#method.advise
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes good point, let's use that and remove the feature flag
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah thank you!
Codecov Report
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. @@ Coverage Diff @@
## main #2036 +/- ##
==========================================
- Coverage 94.39% 94.38% -0.02%
==========================================
Files 319 319
Lines 59161 59198 +37
==========================================
+ Hits 55846 55874 +28
- Misses 3315 3324 +9
|
b4681af
to
70b20cd
Compare
70b20cd
to
2329579
Compare
@PSeitz can you have a look? |
No description provided.