-
Notifications
You must be signed in to change notification settings - Fork 4
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
JNI wrapper for Rust's BTreeMap #76
Conversation
Benchmark for 631e1f4Click to view benchmark
|
Benchmark for 1cd61bcClick to view benchmark
|
Benchmark for b700370Click to view benchmark
|
Benchmark for 2b2d16eClick to view benchmark
|
resolving merge conflicts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We want to wrap the underlying BTreeMap in the FileStorage. We want the BTreeMap to be accessible independent of the FileStorage.
This will most likely lead to a design where the BTreeMap
is wrapped like Rc<RefCell<BTreeMap>>
. This can then be put in a separate struct called
struct WrapperBTreeMap {
data: Rc<RefCell<BTreeMap>>
}
We can then expose Java get and iterator functions for this.
The current approach is tightly coupled with the FileStorage implementation and will not scale to other BaseStorage
implementations like FolderStorage
and ChunkedStorage
.
Note: That Rc RefCell will work with us till we add async at which points we'll switch to Arc Mutex.
Benchmark for 81d2ac1Click to view benchmark
|
Benchmark for cca9b6eClick to view benchmark
|
Benchmark for dd5700dClick to view benchmark
|
Signed-off-by: pushkarm029 <[email protected]>
Benchmark for 8e69a0fClick to view benchmark
|
Signed-off-by: pushkarm029 <[email protected]>
Signed-off-by: pushkarm029 <[email protected]>
Benchmark for 750678cClick to view benchmark
|
Benchmark for f4761efClick to view benchmark
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've left a couple of comments, but it looks good overall.
Thank you.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to merge once @tareknaser's comments are resolved.
ok, working on it |
Signed-off-by: pushkarm029 <[email protected]>
Benchmark for bb4aa20Click to view benchmark
|
resolves #70