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

Update to build with recent Rust and benchmark point range queries #18

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

msfroh
Copy link

@msfroh msfroh commented Feb 16, 2024

Hi there! A couple of us (myself and @harshavamsi) were looking into Lucene's range query performance and wanted to compare against other implementations, including Rucene and Tantivy.

In order to get Rucene compiling with modern Rust, we had to make a number of changes, mostly around names of things (e.g. get_{ref,mut} became assume_init_{ref,mut} for MaybeUninit), but also we had to fix a bunch of "undefined behavior" errors related to interior mutability.

This PR also contains the range query benchmark harness that we built for our experiment (plus a flamegraph from profiling Rucene on those benchmarks). We can remove those from this PR if needed. I just wanted to make sure to surface the build fixes that we've done in case they help someone else.

msfroh and others added 14 commits January 31, 2024 16:55
This change addresses the low-hanging fruit:

1. Update rust-toolchain to a recent nightly.
2. Remove feature flags for invalid features.
3. Update feature usage (mostly MaybeUnInit::get_{ref,mut} and
   Vec::drain_filter.
We still have 12 compiler errors, mostly around casting &T to &mut T,
but I wanted to clean up some warnings to reduce noise.
Signed-off-by: Harsha Vamsi Kalluri <[email protected]>
Signed-off-by: Harsha Vamsi Kalluri <[email protected]>
Signed-off-by: Harsha Vamsi Kalluri <[email protected]>
Signed-off-by: Harsha Vamsi Kalluri <[email protected]>
Signed-off-by: Harsha Vamsi Kalluri <[email protected]>
Signed-off-by: Harsha Vamsi Kalluri <[email protected]>
Signed-off-by: Harsha Vamsi Kalluri <[email protected]>
Signed-off-by: Harsha Vamsi Kalluri <[email protected]>
Signed-off-by: Harsha Vamsi Kalluri <[email protected]>
Added new example with points and benchmarking
@msfroh msfroh mentioned this pull request Feb 16, 2024
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