Skip to content

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

Open
msfroh wants to merge 14 commits into
zhihu:masterfrom
msfroh:master
Open

Update to build with recent Rust and benchmark point range queries#18
msfroh wants to merge 14 commits into
zhihu:masterfrom
msfroh:master

Conversation

@msfroh

@msfroh msfroh commented Feb 16, 2024

Copy link
Copy Markdown

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 <harshavamsi096@gmail.com>
Signed-off-by: Harsha Vamsi Kalluri <harshavamsi096@gmail.com>
Signed-off-by: Harsha Vamsi Kalluri <harshavamsi096@gmail.com>
Signed-off-by: Harsha Vamsi Kalluri <harshavamsi096@gmail.com>
Signed-off-by: Harsha Vamsi Kalluri <harshavamsi096@gmail.com>
Signed-off-by: Harsha Vamsi Kalluri <harshavamsi096@gmail.com>
Signed-off-by: Harsha Vamsi Kalluri <harshavamsi096@gmail.com>
Signed-off-by: Harsha Vamsi Kalluri <harshavamsi096@gmail.com>
Signed-off-by: Harsha Vamsi Kalluri <harshavamsi096@gmail.com>
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