Skip to content
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

Merged
merged 3 commits into from
May 11, 2023
Merged

Added support for madvise #2036

merged 3 commits into from
May 11, 2023

Conversation

fulmicoton
Copy link
Collaborator

No description provided.

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 }
Copy link
Collaborator

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

Copy link
Contributor

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah thank you!

@codecov-commenter
Copy link

codecov-commenter commented May 10, 2023

Codecov Report

Merging #2036 (2329579) into main (f479840) will decrease coverage by 0.02%.
The diff coverage is 78.26%.

❗ 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     
Impacted Files Coverage Δ
src/lib.rs 98.94% <ø> (ø)
src/directory/mmap_directory.rs 86.16% <78.26%> (-1.19%) ⬇️

... and 1 file with indirect coverage changes

@fulmicoton
Copy link
Collaborator Author

@PSeitz can you have a look?

@fulmicoton fulmicoton enabled auto-merge (squash) May 11, 2023 03:27
@fulmicoton fulmicoton merged commit fe3ecf9 into main May 11, 2023
5 checks passed
@fulmicoton fulmicoton deleted the madvise-support branch May 11, 2023 03:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants