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

Add optimized reading of the first 16kB. #8

Merged
merged 3 commits into from
Oct 22, 2022

Conversation

lseelenbinder
Copy link
Member

No description provided.


Ok(header_bytes)
}
}

#[cfg(test)]
#[cfg(all(feature = "mmap-async-tokio", test))]
Copy link
Collaborator

Choose a reason for hiding this comment

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

This feels wrong, tests should not depend on some feature being enabled. Unit tests should just assume every feature is on. I could be wrong

Copy link
Member Author

Choose a reason for hiding this comment

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

Oops. Good catch. I thought I had removed them all, after trying a few different approaches. 😄

Copy link
Collaborator

@nyurik nyurik left a comment

Choose a reason for hiding this comment

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

Nice!

@lseelenbinder lseelenbinder merged commit 2e3c30a into main Oct 22, 2022
@nyurik nyurik deleted the add-prefetch-for-initial-chunk branch October 24, 2022 06:18
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

2 participants