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

feat(byteview): Expose API to apply access hints #899

Merged
merged 9 commits into from
Mar 5, 2025
Merged

Conversation

Dav1dde
Copy link
Member

@Dav1dde Dav1dde commented Mar 5, 2025

Preliminary tests show that accessing sym-caches with MADV_RANDOM significantly reduces bytes requested/read from disk. This exposes an API to apply access pattern hints to ByteView.

While currently this only matters for the mmap branch, in theory it's possible to have a file backed backend, for which this can be re-used with posix_fadvise.

@Dav1dde Dav1dde requested a review from loewenheim March 5, 2025 13:17
Copy link

github-actions bot commented Mar 5, 2025

Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against aef6c06

@Dav1dde Dav1dde force-pushed the dav1d/access-hint branch from 3381c7d to 1686bd8 Compare March 5, 2025 13:18
@Dav1dde Dav1dde changed the title ref(byteview): Expose API to apply access hints feat(byteview): Expose API to apply access hints Mar 5, 2025
@Dav1dde Dav1dde force-pushed the dav1d/access-hint branch from 46fc617 to 906e4f0 Compare March 5, 2025 13:41
@Dav1dde Dav1dde force-pushed the dav1d/access-hint branch from 0fbf48d to aef6c06 Compare March 5, 2025 14:15
@Dav1dde Dav1dde merged commit 8c7606e into master Mar 5, 2025
14 checks passed
@Dav1dde Dav1dde deleted the dav1d/access-hint branch March 5, 2025 14:46
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.

2 participants