Skip to content

add simd for faster magic number searches #72

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

thomasjungblut
Copy link
Owner

That PR adds a magic number search based on AVX2. This reduces the sstable disk index search time from:

BenchmarkSSTableRandomReadByIndexTypes/disk-20 44634 26629 ns/op

to

BenchmarkSSTableRandomReadByIndexTypes/disk-20 50830 23262 ns/op

Not an insane improvement, but I think we can use that to very quickly read the recordio file to determine the index offsets. Which in turn allows to binary search/map lookup without additional seeking.

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.

1 participant