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

Rust FastLanes #345

Closed
wants to merge 15 commits into from
Closed

Rust FastLanes #345

wants to merge 15 commits into from

Conversation

gatesn
Copy link
Contributor

@gatesn gatesn commented Jun 10, 2024

Full Rust implementation of FastLanes BitPacking.

It can almost be done without macros. We need a macro in order to force an inlined loop. This essentially repeats the code within the macro block T times, meaning the compiler sees it as unrolled and performs auto-vectorisation.

This code is 1:1 with the FastLanes scalar auto-vectorised implementation, meaning it has no explicit SIMD dependencies.
Unlike the Zig code, it doesn't unroll all loops, meaning the code size should be more reasonable.

Vectorized ASM on ARM:
image

Vectorized ASM on x86:
image

@gatesn gatesn changed the title [wip] Rust FastLanes Rust FastLanes Jun 11, 2024
@gatesn gatesn marked this pull request as ready for review June 11, 2024 08:37
@gatesn gatesn enabled auto-merge (squash) June 11, 2024 08:41
@gatesn
Copy link
Contributor Author

gatesn commented Jun 11, 2024

Closing in favour of https://github.com/spiraldb/fastlanes

@gatesn gatesn closed this Jun 11, 2024
auto-merge was automatically disabled June 11, 2024 09:55

Pull request was closed

@gatesn gatesn deleted the ngates/rust-fl branch June 11, 2024 09:55
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